]> git.tdb.fi Git - libs/gl.git/blobdiff - source/light.h
Create ProgramData for materials and lights
[libs/gl.git] / source / light.h
index 1c6a52272f56db8597103093c99a3050602fa7b3..77542a54f7404b3a346ff8ec5de3cb1399ee6ffc 100644 (file)
@@ -8,6 +8,9 @@
 namespace Msp {
 namespace GL {
 
+class Matrix;
+class ProgramData;
+
 class Light
 {
 private:
@@ -53,6 +56,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;