]> git.tdb.fi Git - libs/gl.git/blobdiff - source/program.h
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / program.h
index ad37fb65bfca60d51094e741732faf274da7e1ef..818e72be1174d4a0464bc91b5a691d8f54efd602 100644 (file)
@@ -10,7 +10,7 @@ Distributed under the LGPL
 
 #include <list>
 #include <string>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
 #include "gl.h"
 #include "types.h"
 
@@ -30,11 +30,8 @@ private:
        static const Program *cur_prog;
 
 public:
-       class Loader: public DataFile::Loader
+       class Loader: public DataFile::ObjectLoader<Program>
        {
-       private:
-               Program &prog;
-
        public:
                Loader(Program &);