]> git.sesse.net Git - movit/blobdiff - glow_effect.h
Stop linking unit tests et al against SDL_image and other things that only the demo...
[movit] / glow_effect.h
index c0ac9ce5ee4163516ee2806557196447786099a7..3453c997d82ee2938b987089774b2a5677309bde 100644 (file)
@@ -3,15 +3,18 @@
 
 // Glow: Cut out the highlights of the image (everything above a certain threshold),
 // blur them, and overlay them onto the original image.
-//
-// FIXME: This might be broken after MixEffect started working in premultiplied alpha.
-// We need to think about how this is going to work, and then add a test.
+
+#include <GL/glew.h>
+#include <assert.h>
+#include <string>
 
 #include "effect.h"
 
 class BlurEffect;
-class MixEffect;
+class EffectChain;
 class HighlightCutoffEffect;
+class MixEffect;
+class Node;
 
 class GlowEffect : public Effect {
 public:
@@ -45,6 +48,8 @@ public:
        HighlightCutoffEffect();
        virtual std::string effect_type_id() const { return "HighlightCutoffEffect"; }
        std::string output_fragment_shader();
+       
+       virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }
 
 private:
        float cutoff;