-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007 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 {
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() const;
+
+ static const TexEnv *current();
+ static void unbind();
};
} // namespace GL