]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.h
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / texture.h
index 48f551f0ae0d5ea591c984aeb49634a0742763b4..21edb81a74ae53ac67d0c18dff005709c048c431 100644 (file)
@@ -9,7 +9,7 @@ Distributed under the LGPL
 #define MSP_GL_TEXTURE_H_
 
 #include <istream>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
 #include "gl.h"
 #include "types.h"
 
@@ -37,11 +37,8 @@ one of the dimensioned texture classes.
 class Texture
 {
 protected:
-       class Loader: public DataFile::Loader
+       class Loader: public DataFile::ObjectLoader<Texture>
        {
-       protected:
-               Texture &tex;
-
        public:
                Loader(Texture &);
                void min_filter(TextureFilter);