0022819: Redesign of OpenGl driver
[occt.git] / src / OpenGl / OpenGl_Light.hxx
diff --git a/src/OpenGl/OpenGl_Light.hxx b/src/OpenGl/OpenGl_Light.hxx
new file mode 100644 (file)
index 0000000..b4bec03
--- /dev/null
@@ -0,0 +1,30 @@
+// File:      OpenGl_Light.hxx
+// Created:   13 July 2011
+// Author:    Sergey ZERCHANINOV
+// Copyright: OPEN CASCADE 2011
+
+#ifndef OpenGl_Light_Header
+#define OpenGl_Light_Header
+
+#include <NCollection_List.hxx>
+
+#include <InterfaceGraphic_telem.hxx>
+
+#define  OpenGLMaxLights    8
+
+struct OpenGl_Light
+{
+  TLightType  type;
+  int   HeadLight;
+  TEL_COLOUR  col;
+  Tfloat      pos[3];
+  Tfloat      dir[3];
+  Tfloat      shine;
+  Tfloat      atten[2];
+  Tfloat      angle;
+  IMPLEMENT_MEMORY_OPERATORS
+};
+
+typedef NCollection_List<OpenGl_Light> OpenGl_ListOfLight;
+
+#endif //OpenGl_Light_Header