0022819: Redesign of OpenGl driver
[occt.git] / src / OpenGl / OpenGl_Light.hxx
1 // File:      OpenGl_Light.hxx
2 // Created:   13 July 2011
3 // Author:    Sergey ZERCHANINOV
4 // Copyright: OPEN CASCADE 2011
5
6 #ifndef OpenGl_Light_Header
7 #define OpenGl_Light_Header
8
9 #include <NCollection_List.hxx>
10
11 #include <InterfaceGraphic_telem.hxx>
12
13 #define  OpenGLMaxLights    8
14
15 struct OpenGl_Light
16 {
17   TLightType  type;
18   int   HeadLight;
19   TEL_COLOUR  col;
20   Tfloat      pos[3];
21   Tfloat      dir[3];
22   Tfloat      shine;
23   Tfloat      atten[2];
24   Tfloat      angle;
25   IMPLEMENT_MEMORY_OPERATORS
26 };
27
28 typedef NCollection_List<OpenGl_Light> OpenGl_ListOfLight;
29
30 #endif //OpenGl_Light_Header