1 #ifndef MSP_GL_TEXENV_H_
2 #define MSP_GL_TEXENV_H_
13 MODULATE = GL_MODULATE,
29 static const TexEnv &default_object();
31 void set_mode(TexEnvMode);
32 void set_color(const Color &);
33 TexEnvMode get_mode() const { return mode; }
34 const Color &get_color() const { return color; }
35 void bind() const { bind_to(0); }
36 void bind_to(unsigned) const;
38 static const TexEnv *current(unsigned = 0);
39 static void unbind() { unbind_from(0); }
40 static void unbind_from(unsigned);