]> git.tdb.fi Git - libs/gl.git/blobdiff - source/technique.h
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / technique.h
index 468131f75724cc1a39e6922a0539942991a51db8..3bb347ea4c98b9bb535cf132ec68dbb429383b4c 100644 (file)
@@ -25,20 +25,11 @@ slots which Objects must override.
 class Technique
 {
 public:
-       class Loader: public Msp::DataFile::Loader
+       class Loader: public Msp::DataFile::CollectionObjectLoader<Technique>
        {
-       public:
-               typedef DataFile::Collection Collection;
-
-       protected:
-               Technique &tech;
-               Collection &coll;
-       
        public:
                Loader(Technique &, Collection &);
 
-               Technique &get_object() const { return tech; }
-               Collection &get_collection() const { return coll; }
        private:
                virtual void finish();
                void material_inline();