X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Ftechnique.h;h=c2b69bf7bc48625b4eae4e5526aab001731c19cb;hb=5008778dbb1840bf7c6d479800d2b932f8386fb2;hp=c3b5245357180a8e1993fb63a831efbc60db72c0;hpb=233dff2a6c552e08da832496aecd88ef4f8948f1;p=libs%2Fgl.git diff --git a/source/materials/technique.h b/source/materials/technique.h index c3b52453..c2b69bf7 100644 --- a/source/materials/technique.h +++ b/source/materials/technique.h @@ -1,6 +1,7 @@ #ifndef MSP_GL_TECHNIQUE_H_ #define MSP_GL_TECHNIQUE_H_ +#include #include "renderpass.h" #include "tag.h" @@ -18,12 +19,21 @@ class Technique public: class Loader: public Msp::DataFile::CollectionObjectLoader { + private: + std::string inline_base_name; + + static ActionMap shared_actions; + public: Loader(Technique &); Loader(Technique &, Collection &); + private: + virtual void init_actions(); + + public: + void set_inline_base_name(const std::string &); private: - void init(); void inherit(const std::string &); void pass(const std::string &); }; @@ -40,22 +50,19 @@ private: void uniforms(); }; -public: - typedef std::map PassMap; - -private: - PassMap passes; + std::map passes; 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; } + const std::map &get_passes() const { return passes; } 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 &); }; } // namespace GL