X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffect.h;h=4be963f653c686ac9a1688f2be8e13399645a341;hb=d386eadfd08b556ecb05627a7ceca14652e8b1e5;hp=7eeae682dffb00d593601b94e9eca82735a23f2e;hpb=904de4f7fd994886adbd3a6c03bc1b7c14ebc562;p=libs%2Fgl.git diff --git a/source/effect.h b/source/effect.h index 7eeae682..4be963f6 100644 --- a/source/effect.h +++ b/source/effect.h @@ -15,15 +15,20 @@ the wrapped Renderable's render method, and clean up after itself. class Effect: public Renderable { protected: - const Renderable &renderable; + Renderable &renderable; std::set enabled_passes; - Effect(const Renderable &); + Effect(Renderable &); public: virtual ~Effect() { } void enable_for_pass(const Tag &); void disable_for_pass(const Tag &); + + virtual const Matrix *get_matrix() const { return renderable.get_matrix(); } + + virtual void setup_frame(Renderer &r) { renderable.setup_frame(r); } + virtual void finish_frame() { renderable.finish_frame(); } }; } // namespace GL