]> git.sesse.net Git - movit/blobdiff - mirror_effect.h
Install compute shaders on make install.
[movit] / mirror_effect.h
index 6b07ea9433622e0b93c87b319d1ee31267978d68..d9c3f717f9c776b75c83fe53b59653e29038863f 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();
+       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; }
+       virtual bool one_to_one_sampling() const { return true; }
 };
 
-#endif // !defined(_MIRROR_EFFECT_H)
+}  // namespace movit
+
+#endif // !defined(_MOVIT_MIRROR_EFFECT_H)