]> git.sesse.net Git - movit/blobdiff - effect_chain.cpp
Add a diffusion effect, and hook it up in the GUI.
[movit] / effect_chain.cpp
index 1244ecb341f1c81a147db5dfba8497360c6aa7d4..fdc08cfa2ffcbfa30714f4030de96b2d2ce4ae77 100644 (file)
@@ -21,6 +21,7 @@
 #include "mirror_effect.h"
 #include "vignette_effect.h"
 #include "blur_effect.h"
 #include "mirror_effect.h"
 #include "vignette_effect.h"
 #include "blur_effect.h"
+#include "diffusion_effect.h"
 
 EffectChain::EffectChain(unsigned width, unsigned height)
        : width(width),
 
 EffectChain::EffectChain(unsigned width, unsigned height)
        : width(width),
@@ -81,6 +82,8 @@ Effect *instantiate_effect(EffectId effect)
                return new VignetteEffect();
        case EFFECT_BLUR:
                return new BlurEffect();
                return new VignetteEffect();
        case EFFECT_BLUR:
                return new BlurEffect();
+       case EFFECT_DIFFUSION:
+               return new DiffusionEffect();
        }
        assert(false);
 }
        }
        assert(false);
 }