]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/renderer.h
Support binding individual mipmap levels of textures
[libs/gl.git] / source / render / renderer.h
index 1cbcdc60546b93f0cccc2db6ee5cb95a27107b39..fe13a882430f5407b4175d1aa481f776df86d009 100644 (file)
@@ -64,6 +64,7 @@ private:
                mutable int binding = -1;
                const Texture *texture = 0;
                const Sampler *sampler = 0;
+               int level = -1;
                int replaced = -1;
        };
 
@@ -160,6 +161,7 @@ public:
        void add_shader_data(const ProgramData &data);
 
        void set_texture(Tag, const Texture *, const Sampler * = 0);
+       void set_texture(Tag, const Texture *, int, const Sampler * = 0);
 
 private:
        void flush_shader_data();