]> git.sesse.net Git - movit/blobdiff - multiply_effect.h
Convert a loop to range-based for.
[movit] / multiply_effect.h
index 50612fc941f1a5bf50894d39437bd872225034ad..40a7a72791b8a332e3eda52d00b85ba5c86e6d1e 100644 (file)
@@ -6,7 +6,7 @@
 // sending it through OverlayEffect, e.g. with R=G=B=A=0.3 to get 30% alpha
 // (remember, alpha is premultiplied).
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <string>
 
 #include "effect.h"
@@ -16,8 +16,9 @@ namespace movit {
 class MultiplyEffect : public Effect {
 public:
        MultiplyEffect();
-       virtual std::string effect_type_id() const { return "MultiplyEffect"; }
-       std::string output_fragment_shader();
+       std::string effect_type_id() const override { return "MultiplyEffect"; }
+       std::string output_fragment_shader() override;
+       bool strong_one_to_one_sampling() const override { return true; }
 
 private:
        RGBATuple factor;