X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Feffect.cpp;h=0ead01c32fb22ea3d91c43d0cfa1b677c37faf05;hb=7ab8bc0724f40b46d7f5da1bcb05ab6d0cecbb43;hp=878e23fb571cf1881e0af3cf163a1696a3cfd661;hpb=bdcae47bf2f4e49d2d9e4ba15e6f17171ce5fa0c;p=libs%2Fgl.git diff --git a/source/effects/effect.cpp b/source/effects/effect.cpp index 878e23fb..0ead01c3 100644 --- a/source/effects/effect.cpp +++ b/source/effects/effect.cpp @@ -1,6 +1,8 @@ #include #include "effect.h" +using namespace std; + namespace Msp { namespace GL { @@ -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