X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Flight.h;h=4532d0d42c4035c2442fbcaf2e1eea414ce6c164;hb=a275d25eccad43716c5dcf91f8bc4af2a53c0445;hp=d4b66077928188076b44974d6eaf6c36d4e2ccc2;hpb=a266f0f915827b20591f6244ccc36129e844f408;p=libs%2Fgl.git diff --git a/source/materials/light.h b/source/materials/light.h index d4b66077..4532d0d4 100644 --- a/source/materials/light.h +++ b/source/materials/light.h @@ -51,6 +51,7 @@ private: float spot_exp; Geometry::Angle spot_cutoff; float attenuation[3]; + unsigned generation; public: Light(); @@ -107,9 +108,11 @@ public: void set_attenuation(float, float, float); const float *get_attenuation() const { return attenuation; } - /** Updates a ProgramData object with the uniforms for the Light. A view - matrix and light source index must be passed in. */ - void update_shader_data(ProgramData &, const Matrix &, unsigned) const; + unsigned get_generation() const { return generation; } + + /** Updates a ProgramData object with the uniforms for the Light. A light + source index must be passed in. Primarily used by Lighting. */ + void update_shader_data(ProgramData &, unsigned) const; }; } // namespace GL