X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect.h;h=397d3643975545b94fca94aa5eed58aff8ee4c85;hp=4191d4ddfb6714ec284719acae8c0e4b0f89b4bf;hb=879854382e1f6db14812cd6bd5390ca01f4b1d5a;hpb=5d38e4d0b4293f73fdfd9a2c952f4e3722dd60e3 diff --git a/effect.h b/effect.h index 4191d4d..397d364 100644 --- a/effect.h +++ b/effect.h @@ -16,6 +16,8 @@ #include +class EffectChain; + // Can alias on a float[2]. struct Point2D { Point2D(float x, float y) @@ -96,9 +98,7 @@ public: // For most effects, the default will be fine, but for effects that // consist of multiple passes, it is often useful to replace this // with something that adds completely different things to the chain. - virtual void add_self_to_effect_chain(std::vector *chain) { - chain->push_back(this); - } + virtual void add_self_to_effect_chain(EffectChain *graph, Effect *input); // Outputs one GLSL uniform declaration for each registered parameter // (see below), with the right prefix prepended to each uniform name.