]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texunit.h
Improve interface documentation a bit
[libs/gl.git] / source / texunit.h
index 93f6dd085e80497450aae252c9dda4618211eccd..8962e63839cc6dd2f68113917396bf3816889056 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:
@@ -31,10 +34,13 @@ public:
        const TexEnv *get_texenv() const { return texenv; }
        bool set_texgen(unsigned, const TexGen *);
        const TexGen *get_texgen(unsigned);
+       void bind();
 
        static unsigned get_n_units();
-       static TexUnit &activate(unsigned);
+       static TexUnit &get_unit(unsigned);
        static TexUnit &current();
+       static TexUnit *find_unit(const Texture *);
+       static TexUnit *find_unit(const TexEnv *);
 };
 
 } // namespace GL