}
+DataFile::Loader::ActionMap RenderPass::Loader::shared_actions;
+
RenderPass::Loader::Loader(RenderPass &p):
DataFile::CollectionObjectLoader<RenderPass>(p, 0)
{
- init();
+ set_actions(shared_actions);
}
RenderPass::Loader::Loader(RenderPass &p, Collection &c):
DataFile::CollectionObjectLoader<RenderPass>(p, &c)
{
- init();
+ set_actions(shared_actions);
}
-void RenderPass::Loader::init()
+void RenderPass::Loader::init_actions()
{
add("shader", &Loader::shader);
add("material", &Loader::material_inline);
public:
class Loader: public DataFile::CollectionObjectLoader<RenderPass>
{
+ private:
+ static ActionMap shared_actions;
+
public:
Loader(RenderPass &);
Loader(RenderPass &, Collection &);
private:
- void init();
+ virtual void init_actions();
static std::string get_shader_name(const std::string &);
}
+DataFile::Loader::ActionMap Technique::Loader::shared_actions;
+
Technique::Loader::Loader(Technique &t):
DataFile::CollectionObjectLoader<Technique>(t, 0)
{
- init();
+ set_actions(shared_actions);
}
Technique::Loader::Loader(Technique &t, Collection &c):
DataFile::CollectionObjectLoader<Technique>(t, &c)
{
- init();
+ set_actions(shared_actions);
}
-void Technique::Loader::init()
+void Technique::Loader::init_actions()
{
add("inherit", &Loader::inherit);
add("pass", &Loader::pass);
public:
class Loader: public Msp::DataFile::CollectionObjectLoader<Technique>
{
+ private:
+ static ActionMap shared_actions;
+
public:
Loader(Technique &);
Loader(Technique &, Collection &);
private:
- void init();
+ virtual void init_actions();
+
void inherit(const std::string &);
void pass(const std::string &);
};