]> git.tdb.fi Git - libs/gl.git/blobdiff - source/renderpass.h
Use an explicit material slot name in RenderPass
[libs/gl.git] / source / renderpass.h
index 50cefb76698ea48c63b965e79489816b1d239657..c90108d1c27be58632c313e77f491012dcfb8b79 100644 (file)
@@ -58,6 +58,7 @@ private:
        const Program *shprog;
        ProgramData *shdata;
        RefPtr<const Material> material;
+       std::string material_slot;
        Texturing *texturing;
        std::map<std::string, unsigned> tex_names;
        bool back_faces;
@@ -73,6 +74,7 @@ public:
        const ProgramData *get_shader_data() const { return shdata; }
        void set_material(const Material *);
        const Material *get_material() const { return material.get(); }
+       const std::string &get_material_slot_name() const { return material_slot; }
        void set_texture(unsigned, const Texture *);
        const Texturing *get_texturing() const { return texturing; }
        int get_texture_index(const std::string &) const;