]> git.tdb.fi Git - libs/gl.git/blobdiff - source/light.h
Remove ambient color from Light
[libs/gl.git] / source / light.h
index 3be561d71c7dc1b5ba08a3ef0d882786dc39ea3f..658e828781ae32af78f1e70fafe99e984cb99ac7 100644 (file)
@@ -1,10 +1,3 @@
-/* $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_
 
@@ -18,7 +11,6 @@ namespace GL {
 class Light
 {
 private:
-       Color ambient;
        Color diffuse;
        Color specular;
        Vector4 position;
@@ -33,10 +25,8 @@ private:
 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; }
 
@@ -54,9 +44,6 @@ public:
        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);