3 This file is part of libmspgl
4 Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_TEXUNIT_H_
9 #define MSP_GL_TEXUNIT_H_
22 const Texture *texture;
25 static std::vector<TexUnit> units;
26 static TexUnit *cur_unit;
31 bool set_texture(const Texture *);
32 const Texture *get_texture() const { return texture; }
33 bool set_texenv(const TexEnv *);
34 const TexEnv *get_texenv() const { return texenv; }
36 static unsigned get_n_units();
37 static TexUnit &activate(unsigned);
38 static TexUnit ¤t();