]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/technique.h
Access builtin resources through a global instance
[libs/gl.git] / source / materials / technique.h
index c3b5245357180a8e1993fb63a831efbc60db72c0..47a307c9af318b111ef2266b93fc9442ece058e1 100644 (file)
@@ -18,12 +18,16 @@ class Technique
 public:
        class Loader: public Msp::DataFile::CollectionObjectLoader<Technique>
        {
+       private:
+               static ActionMap shared_actions;
+
        public:
                Loader(Technique &);
                Loader(Technique &, Collection &);
 
        private:
-               void init();
+               virtual void init_actions();
+
                void inherit(const std::string &);
                void pass(const std::string &);
        };
@@ -56,6 +60,8 @@ public:
        bool replace_material(const std::string &, const Material &);
        bool replace_uniforms(const ProgramData &);
        bool has_shaders() const;
+
+       void set_debug_name(const std::string &);
 };
 
 } // namespace GL