1 #ifndef MSP_GL_TEXENV_H_
2 #define MSP_GL_TEXENV_H_
13 MODULATE = GL_MODULATE,
36 static const TexEnv &default_object();
39 void update_parameter(int) const;
42 void set_mode(TexEnvMode);
43 void set_color(const Color &);
44 TexEnvMode get_mode() const { return mode; }
45 const Color &get_color() const { return color; }
46 void bind() const { bind_to(0); }
47 void bind_to(unsigned) const;
49 static const TexEnv *current(unsigned = 0);
50 static void unbind() { unbind_from(0); }
51 static void unbind_from(unsigned);