1 #ifndef MSP_GL_TECHNIQUE_H_
2 #define MSP_GL_TECHNIQUE_H_
4 #include "renderpass.h"
14 Ties multiple tagged render passes together.
19 class Loader: public Msp::DataFile::CollectionObjectLoader<Technique>
22 static ActionMap shared_actions;
26 Loader(Technique &, Collection &);
29 virtual void init_actions();
31 void inherit(const std::string &);
32 void pass(const std::string &);
36 class InheritLoader: public Msp::DataFile::CollectionObjectLoader<Technique>
39 InheritLoader(Technique &, Collection &);
42 void material(const std::string &, const std::string &);
43 void texture(const std::string &, const std::string &);
48 typedef std::map<Tag, RenderPass> PassMap;
54 RenderPass &add_pass(Tag);
55 bool has_pass(Tag) const;
56 const RenderPass &get_pass(Tag) const;
57 const RenderPass *find_pass(Tag) const;
58 const PassMap &get_passes() const { return passes; }
59 bool replace_texture(const std::string &, const Texture &);
60 bool replace_material(const std::string &, const Material &);
61 bool replace_uniforms(const ProgramData &);
62 bool has_shaders() const;