X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexunit.h;h=9c4d93f6971ea5b60b10b78b367a60a81092a629;hb=287138704b0cdfc2f9d2064ad3f86bd2d8395b41;hp=05952a2207b57ae015be531b4995dcfd12ee1345;hpb=126161d1d44ab9503bc747d24a07b7b9d15e527a;p=libs%2Fgl.git diff --git a/source/texunit.h b/source/texunit.h index 05952a22..9c4d93f6 100644 --- a/source/texunit.h +++ b/source/texunit.h @@ -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 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; }