]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programdata.h
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / programdata.h
index 4d7938bf1dc7850bd4021f81cf21bdf4df19d1ac..591ffee347f7dfe6bf97a3e1ef9b9772f87c101a 100644 (file)
@@ -9,7 +9,7 @@ Distributed under the LGPL
 #define MSP_GL_PROGRAMDATA_H_
 
 #include <map>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
 
 namespace Msp {
 namespace GL {
@@ -23,10 +23,9 @@ Stores uniform variables for a shader program.
 class ProgramData
 {
 public:
-       class Loader: public DataFile::Loader
+       class Loader: public DataFile::ObjectLoader<ProgramData>
        {
        private:
-               ProgramData &pdata;
                Program &prog;
 
        public: