]> git.tdb.fi Git - libs/gl.git/blobdiff - source/technique.h
Use texture unit numbers instead of slot names in RenderPass
[libs/gl.git] / source / technique.h
index ce12b4f41f0e765c24705f5c94f5d0914c7661c4..80da88f7d2ac7e46cda0c6588f2a5d7055c19767 100644 (file)
@@ -25,9 +25,11 @@ public:
        class Loader: public Msp::DataFile::CollectionObjectLoader<Technique>
        {
        public:
+               Loader(Technique &);
                Loader(Technique &, Collection &);
 
        private:
+               void init();
                void inherit(const std::string &);
                void pass(const std::string &);
        };
@@ -39,7 +41,7 @@ private:
                InheritLoader(Technique &, Collection &);
        
        private:
-               void texture(const std::string &, const std::string &);
+               void texture(unsigned, const std::string &);
        };
 
        typedef std::map<Tag, RenderPass> PassMap;