]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texunit.h
Make TexUnits aware of their incides
[libs/gl.git] / source / texunit.h
index 82c4b5795baafa5a095e1eb126b0b146ba5b5f63..93f6dd085e80497450aae252c9dda4618211eccd 100644 (file)
@@ -13,6 +13,7 @@ class Texture;
 class TexUnit
 {
 private:
+       unsigned index;
        const Texture *texture;
        const TexEnv *texenv;
        const TexGen *texgen[4];
@@ -23,6 +24,7 @@ private:
 public:
        TexUnit();
 
+       unsigned get_index() const { return index; }
        bool set_texture(const Texture *);
        const Texture *get_texture() const { return texture; }
        bool set_texenv(const TexEnv *);