]> git.sesse.net Git - movit/blobdiff - effect_chain.cpp
Add a glow effect, and an effect that linearly mixes two sources (because glow needed...
[movit] / effect_chain.cpp
index f4706a4324239e3e34b300423f9c6204e22e9fac..a8b66ce3caa199320012dd7180d6c3bb5981848e 100644 (file)
@@ -22,6 +22,8 @@
 #include "vignette_effect.h"
 #include "blur_effect.h"
 #include "diffusion_effect.h"
+#include "glow_effect.h"
+#include "mix_effect.h"
 #include "input.h"
 
 EffectChain::EffectChain(unsigned width, unsigned height)
@@ -85,6 +87,10 @@ Effect *instantiate_effect(EffectId effect)
                return new BlurEffect();
        case EFFECT_DIFFUSION:
                return new DiffusionEffect();
+       case EFFECT_GLOW:
+               return new GlowEffect();
+       case EFFECT_MIX:
+               return new MixEffect();
        }
        assert(false);
 }