]> git.tdb.fi Git - libs/gl.git/blobdiff - source/lighting.h
Convert svn:ignore to .gitignore
[libs/gl.git] / source / lighting.h
index 85d5fb0406c877cb0d89e855cc6d6cff2b90a384..76c241e9fa5c46e0ff6aefbcd17ef4dadfc81bdc 100644 (file)
@@ -9,6 +9,7 @@ Distributed under the LGPL
 #define MSP_GL_LIGHTING_H_
 
 #include <vector>
+#include "bindable.h"
 #include "color.h"
 #include "gl.h"
 
@@ -17,22 +18,15 @@ namespace GL {
 
 class Light;
 
-enum
-{
-       LIGHTING = GL_LIGHTING
-};
-
 /**
 Encapsulates global lighting parameters and a number of individual lights.
 */
-class Lighting
+class Lighting: public Bindable<Lighting>
 {
 private:
        Color ambient;
        std::vector<const Light *> lights;
 
-       static const Lighting *current;
-
 public:
        Lighting();