X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=mirror_effect.h;h=c4b46dbb6ff61cff94554bf845bbc8238cec8340;hp=6b07ea9433622e0b93c87b319d1ee31267978d68;hb=d843bbc41c20e1f0abe25df5162423270af78896;hpb=91c70600f2d0a6a42420ee98949cf182859b798f diff --git a/mirror_effect.h b/mirror_effect.h index 6b07ea9..c4b46db 100644 --- a/mirror_effect.h +++ b/mirror_effect.h @@ -1,12 +1,25 @@ -#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 #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; } }; -#endif // !defined(_MIRROR_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_MIRROR_EFFECT_H)