]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texunit.h
TexUnit's constructor shouldn't be public
[libs/gl.git] / source / texunit.h
index 05952a2207b57ae015be531b4995dcfd12ee1345..9c4d93f6971ea5b60b10b78b367a60a81092a629 100644 (file)
@@ -10,6 +10,9 @@ class TexEnv;
 class TexGen;
 class Texture;
 
+/**
+Keeps track of texture unit related state.  Mostly for internal use.
+*/
 class TexUnit
 {
 private:
@@ -21,9 +24,9 @@ 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; }