]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texunit.h
Improve interface documentation a bit
[libs/gl.git] / source / texunit.h
index 8bcb5f023059cf9ef3ea76e61e3a2a976da5fc8d..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:
@@ -36,6 +39,8 @@ public:
        static unsigned get_n_units();
        static TexUnit &get_unit(unsigned);
        static TexUnit &current();
+       static TexUnit *find_unit(const Texture *);
+       static TexUnit *find_unit(const TexEnv *);
 };
 
 } // namespace GL