]> git.sesse.net Git - movit/blobdiff - mirror_effect.h
Make effect_id phase-local instead of global.
[movit] / mirror_effect.h
index 6b07ea9433622e0b93c87b319d1ee31267978d68..bd319ccb79c17b9eec1828cd828f920e4d87cdb4 100644 (file)
@@ -1,12 +1,21 @@
-#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"
 
 class MirrorEffect : public Effect {
 public:
        MirrorEffect();
+       virtual std::string effect_type_id() const { return "MirrorEffect"; }
        std::string output_fragment_shader();
+
+       virtual bool needs_linear_light() const { return false; }
+       virtual bool needs_srgb_primaries() const { return false; }
+       virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
 };
 
-#endif // !defined(_MIRROR_EFFECT_H)
+#endif // !defined(_MOVIT_MIRROR_EFFECT_H)