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);
36 static unsigned get_n_units();
37 static TexUnit &get_unit(unsigned);
38 static TexUnit ¤t();
39 static TexUnit *find_unit(const Texture *);
40 static TexUnit *find_unit(const TexEnv *);