X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Flightunit.h;h=bc200ea4aa7283bab9beec8b15d0585c09178944;hp=658712df1bd092b62c3ab2498cdfc6f2c71c2882;hb=HEAD;hpb=126161d1d44ab9503bc747d24a07b7b9d15e527a diff --git a/source/lightunit.h b/source/lightunit.h deleted file mode 100644 index 658712df..00000000 --- a/source/lightunit.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef MSP_GL_LIGHTUNIT_H_ -#define MSP_GL_LIGHTUNIT_H_ - -#include - -namespace Msp { -namespace GL { - -class Light; - -class LightUnit -{ -private: - unsigned index; - const Light *light; - - static std::vector units; - static LightUnit *cur_unit; - - LightUnit(); - -public: - unsigned get_index() const { return index; } - bool set_light(const Light *); - const Light *get_light() const { return light; } - - static unsigned get_n_units(); - static LightUnit &get_unit(unsigned i); - static LightUnit *find_unit(const Light *); -}; - -} // namespace GL -} // namespace Msp - -#endif