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