1 #ifndef MSP_GL_LIGHT_H_
2 #define MSP_GL_LIGHT_H_
25 void set_diffuse(const Color &c);
26 void set_specular(const Color &c);
27 const Color &get_diffuse() const { return diffuse; }
28 const Color &get_specular() const { return specular; }
30 void set_position(const Vector4 &);
31 const Vector4 &get_position() const { return position; }
32 void set_spot_direction(const Vector3 &);
33 void set_spot_exponent(float);
34 void set_spot_cutoff(float);
35 const Vector3 &get_spot_direction() const { return spot_dir; }
36 float get_spot_exponent() const { return spot_exp; }
37 float get_spot_cutoff() const { return spot_cutoff; }
38 void set_attenuation(float, float, float);
39 const float *get_attenuation() const { return attenuation; }
41 void bind() const { return bind_to(0); }
42 void bind_to(unsigned) const;
44 static const Light *current(unsigned = 0);
45 static void unbind() { return unbind_from(0); }
46 static void unbind_from(unsigned);