]> git.sesse.net Git - movit/blobdiff - effect.cpp
Prepare for a more DAG-like effect graph. Does not actually do anything differently...
[movit] / effect.cpp
index 4f2bfd616a3400f1ea3a6929ff5d755f3d9b0f2f..7f8dda2de1d76a1a57ec54bf06b10191bec62805 100644 (file)
@@ -4,6 +4,7 @@
 #include <string.h>
 #include <assert.h>
 #include "effect.h"
+#include "effect_chain.h"
 #include "util.h"
 
 #include <GL/gl.h>
@@ -169,6 +170,11 @@ void Effect::invalidate_1d_texture(const std::string &key)
        params_tex_1d[key].needs_update = true;
 }
 
+void Effect::add_self_to_effect_chain(EffectChain *chain, Effect *input)
+{
+       chain->add_effect_raw(this, input);
+}
+
 // Output convenience uniforms for each parameter.
 // These will be filled in per-frame.
 std::string Effect::output_convenience_uniforms() const