X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexenv.h;fp=source%2Ftexenv.h;h=0000000000000000000000000000000000000000;hb=f1b12c992db974c679d85ae6ec22cd318199d0d5;hp=c422331aadd8f95285a842d9322fde6241bce16a;hpb=67538c60b8baa6816b8ae2d343ae62d881e6c58d;p=libs%2Fgl.git diff --git a/source/texenv.h b/source/texenv.h deleted file mode 100644 index c422331a..00000000 --- a/source/texenv.h +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef MSP_GL_TEXENV_H_ -#define MSP_GL_TEXENV_H_ - -#include "color.h" -#include "gl.h" - -namespace Msp { -namespace GL { - -enum TexEnvMode -{ - REPLACE = GL_REPLACE, - MODULATE = GL_MODULATE, - DECAL = GL_DECAL, - BLEND = GL_BLEND, - ADD = GL_ADD, - COMBINE = GL_COMBINE -}; - -class TexEnv -{ -private: - enum ParameterMask - { - MODE = 1, - COLOR = 2 - }; - - TexEnvMode mode; - Color color; - -public: - TexEnv(); - ~TexEnv(); - - static const TexEnv &default_object(); - -private: - void update_parameter(int) const; - -public: - 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 { bind_to(0); } - void bind_to(unsigned) const; - - static const TexEnv *current(unsigned = 0); - static void unbind() { unbind_from(0); } - static void unbind_from(unsigned); -}; - -} // namespace GL -} // namespace Msp - -#endif