source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/Standalone/Hierarchical Systems Demo [OpenGL]/RESOURCES/include/My3DGraphRes/Light.h @ 3255

Revision 3255, 975 bytes checked in by szirmay, 15 years ago (diff)
Line 
1// Light.h: interface for the Light class.
2//
3//////////////////////////////////////////////////////////////////////
4
5#if !defined(AFX_LIGHT_H__3B666E0C_0920_43D0_A6B7_7DADEC83948D__INCLUDED_)
6#define AFX_LIGHT_H__3B666E0C_0920_43D0_A6B7_7DADEC83948D__INCLUDED_
7
8#if _MSC_VER > 1000
9#pragma once
10#endif // _MSC_VER > 1000
11
12#include <includes.h>
13#include "Vector.h"
14#include <fstream>
15
16using namespace std;
17
18#define TYPE_LIGHT              2
19
20#define LIGHT_TYPE_SPOT                 2
21#define LIGHT_TYPE_DIRECTIONAL  1
22#define LIGHT_TYPE_POINT                0
23
24class Light 
25{
26public:
27        Light();
28        virtual ~Light();
29       
30        Vector m_Ambient_Color;
31        Vector m_Diffuse_Color;
32        Vector m_Specular_Color;
33
34        Vector m_Position;
35        Vector m_Spot_Direction;
36
37        double m_Exponent;
38        double m_Cutoff;       
39
40        GLenum Lightname;
41        int m_type;
42       
43        void SetLight(GLenum light);
44        void Load(ifstream *file);
45};
46
47#endif // !defined(AFX_LIGHT_H__3B666E0C_0920_43D0_A6B7_7DADEC83948D__INCLUDED_)
Note: See TracBrowser for help on using the repository browser.