]> 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 8b21e521a9449979aae90ad7df14ef903f8c6b34..3453c997d82ee2938b987089774b2a5677309bde 100644 (file)
@@ -4,11 +4,17 @@
 // Glow: Cut out the highlights of the image (everything above a certain threshold),
 // blur them, and overlay them onto the original image.
 
+#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:
@@ -42,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;