X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmaterials%2Ftechnique.h;h=716c57cd0bb5903c71d778038a0eb6ac86248e77;hb=HEAD;hp=a7999c0cf67652a140a219c24258e2a3e210ee39;hpb=3ac3a51c623271da815c8ee60c484445871753bf;p=libs%2Fgl.git diff --git a/source/materials/technique.h b/source/materials/technique.h index a7999c0c..716c57cd 100644 --- a/source/materials/technique.h +++ b/source/materials/technique.h @@ -1,7 +1,8 @@ #ifndef MSP_GL_TECHNIQUE_H_ #define MSP_GL_TECHNIQUE_H_ -#include "renderpass.h" +#include +#include "rendermethod.h" #include "tag.h" namespace Msp { @@ -11,7 +12,7 @@ class Material; class Texture; /** -Ties multiple tagged render passes together. +Ties multiple tagged render methods together. */ class Technique { @@ -24,7 +25,6 @@ public: static ActionMap shared_actions; public: - Loader(Technique &); Loader(Technique &, Collection &); private: virtual void init_actions(); @@ -34,7 +34,7 @@ public: private: void inherit(const std::string &); - void pass(const std::string &); + void method(const std::string &); }; private: @@ -49,22 +49,17 @@ private: void uniforms(); }; -public: - typedef std::map PassMap; - -private: - PassMap passes; + std::map methods; public: - RenderPass &add_pass(Tag); - bool has_pass(Tag) const; - const RenderPass &get_pass(Tag) const; - const RenderPass *find_pass(Tag) const; - const PassMap &get_passes() const { return passes; } + RenderMethod &add_method(Tag); + bool has_method(Tag) const; + const RenderMethod &get_method(Tag) const; + const RenderMethod *find_method(Tag) const; + const std::map &get_methods() const { return methods; } bool replace_texture(const std::string &, const Texture &); bool replace_material(const std::string &, const Material &); bool replace_uniforms(const ProgramData &); - bool has_shaders() const; void set_debug_name(const std::string &); };