-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_GL_LIGHT_H_
#define MSP_GL_LIGHT_H_
class Light
{
private:
- Color ambient;
Color diffuse;
Color specular;
Vector4 position;
public:
Light();
- void set_ambient(const Color &c);
void set_diffuse(const Color &c);
void set_specular(const Color &c);
- const Color &get_ambient() const { return ambient; }
const Color &get_diffuse() const { return diffuse; }
const Color &get_specular() const { return specular; }
void bind() const;
void bind_to(unsigned) const;
- // Deprecated
- void set_position(float x, float y, float z, float w) { set_position(Vector4(x, y, z, w)); }
-
static void activate(unsigned);
static void unbind();
static void unbind_from(unsigned);