]> git.sesse.net Git - movit/blobdiff - glow_effect.h
Fix a bug where PaddingEffect could create assertion errors.
[movit] / glow_effect.h
index 8b21e521a9449979aae90ad7df14ef903f8c6b34..91106e03b08927ab3498d784f3611b05e36aafa8 100644 (file)
@@ -1,14 +1,20 @@
-#ifndef _GLOW_EFFECT_H
-#define _GLOW_EFFECT_H 1
+#ifndef _MOVIT_GLOW_EFFECT_H
+#define _MOVIT_GLOW_EFFECT_H 1
 
 // 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,9 +48,11 @@ 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;
 };
 
-#endif // !defined(_GLOW_EFFECT_H)
+#endif // !defined(_MOVIT_GLOW_EFFECT_H)