]> git.tdb.fi Git - libs/gl.git/blob - source/effects/effect.cpp
Support effects and subordinate sequences inside sequence templates
[libs/gl.git] / source / effects / effect.cpp
1 #include "effect.h"
2
3 namespace Msp {
4 namespace GL {
5
6 Effect::Effect(Renderable &r):
7         renderable(r)
8 {
9         enabled_methods.insert(Tag());
10 }
11
12 void Effect::enable_for_method(Tag tag)
13 {
14         enabled_methods.insert(tag);
15 }
16
17 void Effect::disable_for_method(Tag tag)
18 {
19         enabled_methods.erase(tag);
20 }
21
22
23 Effect::Template::Loader::Loader(Template &t, Collection &c):
24         CollectionObjectLoader<Template>(t, &c)
25 { }
26
27 void Effect::Template::Loader::init_actions()
28 {
29         add("content", &Template::content_name);
30 }
31
32 } // namespace GL
33 } // namespace Msp