X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftechnique.h;h=f80e2f6144e0f59d32bade49829c721df5b15d27;hp=1078433f39f7d5c028b80ca622150882446ac3e4;hb=HEAD;hpb=cfd4d36c2b6b6095ada3aef8082e5d409a233a21 diff --git a/source/technique.h b/source/technique.h deleted file mode 100644 index 1078433f..00000000 --- a/source/technique.h +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef MSP_GL_TECHNIQUE_H_ -#define MSP_GL_TECHNIQUE_H_ - -#include "renderpass.h" -#include "tag.h" - -namespace Msp { -namespace GL { - -class Material; -class Texture; - -/** -Ties multiple tagged render passes together. -*/ -class Technique -{ -public: - class Loader: public Msp::DataFile::CollectionObjectLoader - { - public: - Loader(Technique &); - Loader(Technique &, Collection &); - - private: - void init(); - void inherit(const std::string &); - void pass(const std::string &); - }; - -private: - class InheritLoader: public Msp::DataFile::CollectionObjectLoader - { - public: - InheritLoader(Technique &, Collection &); - - private: - void material(const std::string &, const std::string &); - void texture(const std::string &, const std::string &); - }; - -public: - typedef std::map PassMap; - -private: - PassMap passes; - -public: - RenderPass &add_pass(const Tag &); - bool has_pass(const Tag &) const; - const RenderPass &get_pass(const Tag &) const; - const PassMap &get_passes() const { return passes; } - bool replace_texture(const std::string &, const Texture &); - bool replace_material(const std::string &, const Material &); - bool has_shaders() const; -}; - -} // namespace GL -} // namespace Msp - -#endif