#ifndef MSP_GL_LIGHT_H_
#define MSP_GL_LIGHT_H_
+#include <vector>
#include "color.h"
namespace Msp {
float spot_cutoff;
float attenuation[3];
- static unsigned current;
+ static unsigned current_unit;
+ static std::vector<const Light *> current_lights;
public:
Light();
void set_diffuse(const Color &c);
void set_specular(const Color &c);
void set_position(float, float, float, float);
- void apply() const;
- void apply_to(unsigned) const;
+ void bind() const;
+ void bind_to(unsigned) const;
static void activate(unsigned);
+ static void unbind();
};
} // namespace GL