X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Flighting.h;h=94ccdd5e968170bdca6b4c0dd4230a4643d893fa;hp=7c7dc454c14f027e1fed3c17f62ec5b6b9b3c608;hb=HEAD;hpb=a6acc6fc98f8571eaaa66f726c1ff4d60abe4f58 diff --git a/source/lighting.h b/source/lighting.h deleted file mode 100644 index 7c7dc454..00000000 --- a/source/lighting.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef MSP_GL_LIGHTING_H_ -#define MSP_GL_LIGHTING_H_ - -#include -#include "bindable.h" -#include "color.h" -#include "gl.h" -#include "programdata.h" - -namespace Msp { -namespace GL { - -class Light; - -/** -Encapsulates global lighting parameters and a number of individual lights. -*/ -class Lighting: public Bindable -{ -private: - Color ambient; - std::vector lights; - ProgramData shdata; - -public: - Lighting(); - - void set_ambient(const Color &); - const Color &get_ambient() const { return ambient; } - - 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(); -}; - -} // namespace GL -} // namespace Msp - -#endif