class TexGen;
class Texture;
+/**
+Keeps track of texture unit related state. Mostly for internal use.
+*/
class TexUnit
{
private:
static std::vector<TexUnit> units;
static TexUnit *cur_unit;
-public:
TexUnit();
+public:
unsigned get_index() const { return index; }
bool set_texture(const Texture *);
const Texture *get_texture() const { return texture; }