]> git.sesse.net Git - movit/blobdiff - alpha_multiplication_effect.h
Use C++11 override everywhere it is appropriate.
[movit] / alpha_multiplication_effect.h
index 2425a427e2764822287f3f54443fb5f896e61f32..85f08f87d1fac288ee87c2371579e2c38137671b 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _ALPHA_MULTIPLICATION_EFFECT_H
-#define _ALPHA_MULTIPLICATION_EFFECT_H 1
+#ifndef _MOVIT_ALPHA_MULTIPLICATION_EFFECT_H
+#define _MOVIT_ALPHA_MULTIPLICATION_EFFECT_H 1
 
 // Convert postmultiplied alpha to premultiplied alpha, simply by multiplying.
 
@@ -7,11 +7,16 @@
 
 #include "effect.h"
 
+namespace movit {
+
 class AlphaMultiplicationEffect : public Effect {
 public:
        AlphaMultiplicationEffect() {}
-       virtual std::string effect_type_id() const { return "AlphaMultiplicationEffect"; }
-       std::string output_fragment_shader();
+       std::string effect_type_id() const override { return "AlphaMultiplicationEffect"; }
+       std::string output_fragment_shader() override;
+       bool one_to_one_sampling() const override { return true; }
 };
 
-#endif // !defined(_ALPHA_MULTIPLICATION_EFFECT_H)
+}  // namespace movit
+
+#endif // !defined(_MOVIT_ALPHA_MULTIPLICATION_EFFECT_H)