1 #ifndef MSP_GL_LIGHTING_H_
2 #define MSP_GL_LIGHTING_H_
8 #include "programdata.h"
16 Encapsulates global lighting parameters and a number of individual lights.
18 class Lighting: public Bindable<Lighting>
22 std::vector<const Light *> lights;
28 void set_ambient(const Color &);
29 const Color &get_ambient() const { return ambient; }
31 void attach(unsigned, const Light &);
32 void detach(unsigned);
34 void update_shader_data(const Matrix &);
35 const ProgramData &get_shader_data() const { return shdata; }