#ifndef MSP_GL_OBJECTPASS_H_
#define MSP_GL_OBJECTPASS_H_
-#include <msp/datafile/collection.h>
+#include <msp/datafile/objectloader.h>
namespace Msp {
namespace GL {
struct ObjectPass
{
- class Loader: public DataFile::Loader
+ class Loader: public DataFile::CollectionObjectLoader<ObjectPass>
{
- public:
- typedef DataFile::Collection Collection;
-
- private:
- ObjectPass &pass;
- Collection &coll;
-
public:
Loader(ObjectPass &, Collection &);
- ObjectPass &get_object() const { return pass; }
- Collection &get_collection() const { return coll; }
private:
void shader(const std::string &);
};