]> git.sesse.net Git - movit/blobdiff - glow_effect.h
Release Movit 1.3.2. (From a branch, since I do not want to break ABI compatibility...
[movit] / glow_effect.h
index 91106e03b08927ab3498d784f3611b05e36aafa8..02520d7bd9ad8f87f38dd9c4365f63be9e85851f 100644 (file)
@@ -4,12 +4,14 @@
 // 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 <epoxy/gl.h>
 #include <assert.h>
 #include <string>
 
 #include "effect.h"
 
+namespace movit {
+
 class BlurEffect;
 class EffectChain;
 class HighlightCutoffEffect;
@@ -50,9 +52,12 @@ public:
        std::string output_fragment_shader();
        
        virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }
+       virtual bool one_to_one_sampling() const { return true; }
 
 private:
        float cutoff;
 };
 
+}  // namespace movit
+
 #endif // !defined(_MOVIT_GLOW_EFFECT_H)