]> git.tdb.fi Git - libs/gl.git/blobdiff - source/light.cpp
Move some declarations around a bit
[libs/gl.git] / source / light.cpp
index 067cc3d1fee1416cce0451e37a90c6482f7cc2e9..4b2e289c6c5d7c1b21ebb7f749a0a963523412e4 100644 (file)
@@ -7,6 +7,9 @@ using namespace std;
 namespace Msp {
 namespace GL {
 
+unsigned Light::current_unit = 0;
+vector<const Light *> Light::current_lights(1);
+
 Light::Light():
        ambient(0),
        diffuse(1),
@@ -117,8 +120,5 @@ void Light::unbind_from(unsigned i)
        unbind();
 }
 
-unsigned Light::current_unit = 0;
-vector<const Light *> Light::current_lights(1);
-
 } // namespace GL
 } // namespace Msp