X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flight.h;h=fa5bf28752b00a2a7e4735b8c0096d319c12b7af;hb=922fac753e31d97fc88daa166e93e4c5572bd2ba;hp=1c6a52272f56db8597103093c99a3050602fa7b3;hpb=126161d1d44ab9503bc747d24a07b7b9d15e527a;p=libs%2Fgl.git diff --git a/source/light.h b/source/light.h index 1c6a5227..fa5bf287 100644 --- a/source/light.h +++ b/source/light.h @@ -8,6 +8,9 @@ namespace Msp { namespace GL { +class Matrix; +class ProgramData; + class Light { private: @@ -32,6 +35,7 @@ private: public: Light(); + ~Light(); private: void update_parameter(int, int = -1) const; @@ -53,6 +57,7 @@ public: void set_attenuation(float, float, float); const float *get_attenuation() const { return attenuation; } + void update_shader_data(ProgramData &, const Matrix &, unsigned) const; void bind() const { return bind_to(0); } void bind_to(unsigned) const;