3 This file is part of libmspgl
4 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
18 void TexEnv::set_mode(TexEnvMode m)
23 void TexEnv::set_color(const Color &c)
30 if(TexUnit::current().set_texenv(this))
32 glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, mode);
33 glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, &color.r);
39 TexUnit::current().set_texenv(0);