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;
27 void set_ambient(const Color &);
28 const Color &get_ambient() const { return ambient; }
30 void attach(unsigned, const Light &);
31 void detach(unsigned);
33 void update_shader_data(ProgramData &, const Matrix &) const;