X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexenv.h;h=5ed05d6c7e0d24343e6fe9dbeba3675613208ead;hp=6d0eba9f2026f802408c342577f845a582d870a4;hb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;hpb=f098a871fc6dc7b61a5aca5581fa327e4124c036 diff --git a/source/texenv.h b/source/texenv.h index 6d0eba9f..5ed05d6c 100644 --- a/source/texenv.h +++ b/source/texenv.h @@ -1,13 +1,9 @@ -/* $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 { @@ -23,9 +19,20 @@ 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() const; + + static const TexEnv *current(); + static void unbind(); }; } // namespace GL