1 #ifndef MSP_GL_TEXUNIT_H_
2 #define MSP_GL_TEXUNIT_H_
17 const Texture *texture;
19 const TexGen *texgen[4];
21 static std::vector<TexUnit> units;
22 static TexUnit *cur_unit;
27 unsigned get_index() const { return index; }
28 bool set_texture(const Texture *);
29 const Texture *get_texture() const { return texture; }
30 bool set_texenv(const TexEnv *);
31 const TexEnv *get_texenv() const { return texenv; }
32 bool set_texgen(unsigned, const TexGen *);
33 const TexGen *get_texgen(unsigned);
35 static unsigned get_n_units();
36 static TexUnit &activate(unsigned);
37 static TexUnit ¤t();