X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fbuilders%2Fsequencetemplate.h;h=4c195a000bc925983abdf885aace11d68e8dda4d;hb=fe2fc291a4fc618425c64112c9ffd3519f0b8a3e;hp=5c5b04b5fc5f315a664ad91cdd319475f7be101f;hpb=dff7004fa078d55911664c0f513b5dc6c9449420;p=libs%2Fgl.git diff --git a/source/builders/sequencetemplate.h b/source/builders/sequencetemplate.h index 5c5b04b5..4c195a00 100644 --- a/source/builders/sequencetemplate.h +++ b/source/builders/sequencetemplate.h @@ -14,6 +14,7 @@ namespace GL { class DepthTest; class Lighting; +class Renderable; class SequenceTemplate { @@ -55,7 +56,8 @@ public: void multisample(unsigned); void multisample_range(unsigned, unsigned); void postprocessor(const std::string &); - void step(const std::string &, const std::string &); + void step(const std::string &); + void step_with_slot(const std::string &, const std::string &); }; struct Step @@ -74,16 +76,16 @@ public: void depth_test_predefined(const std::string &); void lighting(const std::string &); void lighting_inline(); - // TODO requires support for scenes in Resources - //void scene(const std::string &); + void object(const std::string &); + void scene(const std::string &); }; std::string tag; RefPtr lighting; RefPtr depth_test; RefPtr blend; - std::string renderable_name; - //Renderable *default_renderable; + std::string slot_name; + Renderable *default_renderable; ~Step(); }; @@ -101,7 +103,6 @@ public: private: typedef TypeRegistry PostProcessorRegistry; - Resources *resources; bool hdr; bool alpha; unsigned required_multisample; @@ -113,7 +114,6 @@ public: SequenceTemplate(); ~SequenceTemplate(); - Resources &get_resources() const; bool get_hdr() const { return hdr; } bool get_alpha() const { return alpha; } unsigned get_required_multisample() const { return required_multisample; }