X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Feffect.cpp;h=0ead01c32fb22ea3d91c43d0cfa1b677c37faf05;hb=7ab8bc0724f40b46d7f5da1bcb05ab6d0cecbb43;hp=e59aeed8e039dcbc352d6daf6904a3b44eacaa06;hpb=84e0e55710123e54617d342df852007f8b60af24;p=libs%2Fgl.git diff --git a/source/effects/effect.cpp b/source/effects/effect.cpp index e59aeed8..0ead01c3 100644 --- a/source/effects/effect.cpp +++ b/source/effects/effect.cpp @@ -1,11 +1,13 @@ #include #include "effect.h" +using namespace std; + namespace Msp { namespace GL { -Effect::Effect(Renderable &r): - renderable(r) +Effect::Effect(Renderable &c): + content(c) { enable_for_method(Tag()); } @@ -31,6 +33,13 @@ bool Effect::is_enabled_for_method(Tag tag) const } +void Effect::Template::create_base(Effect &effect) const +{ + for(Tag m: enabled_methods) + effect.enable_for_method(m); +} + + Effect::Template::Loader::Loader(Template &t, Collection &c): CollectionObjectLoader