X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Flighting.h;h=7c7dc454c14f027e1fed3c17f62ec5b6b9b3c608;hp=794fb75a045497eae7c803b2f86aab9c3d42ce58;hb=a6acc6fc98f8571eaaa66f726c1ff4d60abe4f58;hpb=2579be0c3bf50f060364b937e6b2446ea3547e4b diff --git a/source/lighting.h b/source/lighting.h index 794fb75a..7c7dc454 100644 --- a/source/lighting.h +++ b/source/lighting.h @@ -5,6 +5,7 @@ #include "bindable.h" #include "color.h" #include "gl.h" +#include "programdata.h" namespace Msp { namespace GL { @@ -19,6 +20,7 @@ class Lighting: public Bindable private: Color ambient; std::vector lights; + ProgramData shdata; public: Lighting(); @@ -28,6 +30,9 @@ public: void attach(unsigned, const Light &); void detach(unsigned); + + void update_shader_data(const Matrix &); + const ProgramData &get_shader_data() const { return shdata; } void bind() const; static void unbind();