X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Ftechnique.h;h=716c57cd0bb5903c71d778038a0eb6ac86248e77;hp=c2b69bf7bc48625b4eae4e5526aab001731c19cb;hb=ae45c0397e2cb8f0a01f2f31d01c95ff3870271e;hpb=5008778dbb1840bf7c6d479800d2b932f8386fb2 diff --git a/source/materials/technique.h b/source/materials/technique.h index c2b69bf7..716c57cd 100644 --- a/source/materials/technique.h +++ b/source/materials/technique.h @@ -2,7 +2,7 @@ #define MSP_GL_TECHNIQUE_H_ #include -#include "renderpass.h" +#include "rendermethod.h" #include "tag.h" namespace Msp { @@ -12,7 +12,7 @@ class Material; class Texture; /** -Ties multiple tagged render passes together. +Ties multiple tagged render methods together. */ class Technique { @@ -25,7 +25,6 @@ public: static ActionMap shared_actions; public: - Loader(Technique &); Loader(Technique &, Collection &); private: virtual void init_actions(); @@ -35,7 +34,7 @@ public: private: void inherit(const std::string &); - void pass(const std::string &); + void method(const std::string &); }; private: @@ -50,14 +49,14 @@ private: void uniforms(); }; - std::map 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 std::map &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 &);