]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderpass.h
Reintroduce named texture slots for Technique inheritance
[libs/gl.git] / source / renderpass.h
index 5c1b84520db58ef8d38e894066de2f8f56a2b1f5..c201eb07c807564a58c1edaa8446d0e83af2e9f6 100644 (file)
@@ -42,6 +42,7 @@ public:
                void material_inline();
                void material(const std::string &);
                void texunit(unsigned);
+               void texunit_named(unsigned, const std::string &);
                void uniforms();
        };
 
@@ -67,6 +68,7 @@ private:
        ProgramData *shdata;
        RefPtr<const Material> material;
        Texturing *texturing;
+       std::map<std::string, unsigned> tex_names;
 
        RenderPass &operator=(const RenderPass &);
 public:
@@ -80,6 +82,7 @@ public:
        const Material *get_material() const { return material.get(); }
        void set_texture(unsigned, const Texture *);
        const Texturing *get_texturing() const { return texturing; }
+       int get_texture_index(const std::string &) const;
 };
 
 } // namespace GL