]> git.sesse.net Git - movit/blobdiff - mirror_effect.h
Typo fixes.
[movit] / mirror_effect.h
index 6b07ea9433622e0b93c87b319d1ee31267978d68..da3a7117601c342ca9150f66e18fe472258340dc 100644 (file)
@@ -1,12 +1,26 @@
-#ifndef _MIRROR_EFFECT_H
-#define _MIRROR_EFFECT_H 1
+#ifndef _MOVIT_MIRROR_EFFECT_H
+#define _MOVIT_MIRROR_EFFECT_H 1
+
+// A simple horizontal mirroring.
+
+#include <string>
 
 #include "effect.h"
 
+namespace movit {
+
 class MirrorEffect : public Effect {
 public:
        MirrorEffect();
-       std::string output_fragment_shader();
+       std::string effect_type_id() const override { return "MirrorEffect"; }
+       std::string output_fragment_shader() override;
+
+       bool needs_linear_light() const override { return false; }
+       bool needs_srgb_primaries() const override { return false; }
+       AlphaHandling alpha_handling() const override { return DONT_CARE_ALPHA_TYPE; }
+       bool one_to_one_sampling() const override { return true; }
 };
 
-#endif // !defined(_MIRROR_EFFECT_H)
+}  // namespace movit
+
+#endif // !defined(_MOVIT_MIRROR_EFFECT_H)