]> git.tdb.fi Git - libs/gl.git/blobdiff - source/lighting.h
Rework Bind and enable it to restore the old binding
[libs/gl.git] / source / lighting.h
index 85d5fb0406c877cb0d89e855cc6d6cff2b90a384..31e75a44c66b36442778b7ac2d07e0add0a6f342 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"
 
@@ -25,14 +26,12 @@ enum
 /**
 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();