]> git.tdb.fi Git - libs/gl.git/blobdiff - source/batch.h
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / batch.h
index 6950af894898b93bc576df783a7c9cb857635ac4..bca541392832c3285b78ce97c8ea44cd75342e90 100644 (file)
@@ -9,7 +9,7 @@ Distributed under the LGPL
 #define MSP_GL_BATCH_H_
 
 #include <vector>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
 #include "primitivetype.h"
 #include "types.h"
 
@@ -19,13 +19,11 @@ namespace GL {
 class Batch
 {
 public:
-       class Loader: public DataFile::Loader
+       class Loader: public DataFile::ObjectLoader<Batch>
        {
        public:
                Loader(Batch &);
        private:
-               Batch &batch;
-
                void indices(const std::vector<uint> &);
        };