]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderer.h
Automatically determine texture units for effects
[libs/gl.git] / source / renderer.h
index f736447e12fce15c7bf9555cd9be7333cd01b2ae..1be1a4549211828d8b3dedfeea7898a4c0a526b3 100644 (file)
@@ -65,6 +65,7 @@ private:
        {
                const Texture *texture;
                const Texturing *texturing;
+               unsigned lowest_effect_texunit;
                const Material *material;
                const Lighting *lighting;
                Matrix lighting_matrix;
@@ -110,6 +111,7 @@ public:
 
        void set_texture(const Texture *);
        void set_texturing(const Texturing *);
+       unsigned allocate_effect_texunit();
        void set_material(const Material *);
 
        void set_lighting(const Lighting *);