X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flight.h;h=cf9ab8a1acb69cdbec2cdfead4ad2580e66f40e7;hb=48b1ab4fff00c49cc15d70a354eedb3d7a2f3e87;hp=658e828781ae32af78f1e70fafe99e984cb99ac7;hpb=787e0f5daaccb912fd351b26f9cb9026719ab384;p=libs%2Fgl.git diff --git a/source/light.h b/source/light.h index 658e8287..cf9ab8a1 100644 --- a/source/light.h +++ b/source/light.h @@ -19,9 +19,6 @@ private: float spot_cutoff; float attenuation[3]; - static unsigned current_unit; - static std::vector current_lights; - public: Light(); @@ -41,11 +38,11 @@ public: void set_attenuation(float, float, float); const float *get_attenuation() const { return attenuation; } - void bind() const; + void bind() const { return bind_to(0); } void bind_to(unsigned) const; - static void activate(unsigned); - static void unbind(); + static const Light *current(unsigned = 0); + static void unbind() { return unbind_from(0); } static void unbind_from(unsigned); };