1 #ifndef MSP_GL_TEXUNIT_H_
2 #define MSP_GL_TEXUNIT_H_
14 Keeps track of texture unit related state. Intended for internal use.
20 const Texture *texture;
22 static std::vector<TexUnit> units;
23 static TexUnit *cur_unit;
28 unsigned get_index() const { return index; }
29 bool set_texture(const Texture *);
30 const Texture *get_texture() const { return texture; }
33 static unsigned get_n_units();
34 static TexUnit &get_unit(unsigned);
35 static TexUnit ¤t();
36 static TexUnit *find_unit(const Texture *);