X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Flighting.h;h=94ccdd5e968170bdca6b4c0dd4230a4643d893fa;hp=593d8039fe5c8365269b757f963173b14289cd51;hb=HEAD;hpb=ce657d3b7783db9f3450162fbf07210ea1c8c661 diff --git a/source/lighting.h b/source/lighting.h deleted file mode 100644 index 593d8039..00000000 --- a/source/lighting.h +++ /dev/null @@ -1,42 +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; - -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(ProgramData &, const Matrix &) const; - void bind() const; - - static void unbind(); -}; - -} // namespace GL -} // namespace Msp - -#endif