]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texenv.h
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / texenv.h
index fbacff3f69bec629ce8a17a307b250247b4e314e..b5fee448d64e5cce152ca4eaa3566e3d4f0c9370 100644 (file)
@@ -1,6 +1,16 @@
+/* $Id$
+
+This file is part of libmspgl
+Copyright © 2007-2008  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #ifndef MSP_GL_TEXENV_H_
 #define MSP_GL_TEXENV_H_
 
+#include "color.h"
+#include "gl.h"
+
 namespace Msp {
 namespace GL {
 
@@ -16,9 +26,19 @@ enum TexEnvMode
 
 class TexEnv
 {
+private:
+       TexEnvMode mode;
+       Color color;
+
 public:
-       void mode(TexEnvMode);
-       void color(float, float, float, float);
+       TexEnv();
+       void set_mode(TexEnvMode);
+       void set_color(const Color &);
+       TexEnvMode get_mode() const { return mode; }
+       const Color &get_color() const { return color; }
+       void bind();
+
+       static void unbind();
 };
 
 } // namespace GL