X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=mirror_effect.h;h=d9c3f717f9c776b75c83fe53b59653e29038863f;hp=6e75b2692f06ab35188f30883ce34d3b43aefcad;hb=c6c3847558f3724f2b8973aa503de0e6c3de5816;hpb=bc31a9072da1d9bfe417fd850e92cabe049fd593 diff --git a/mirror_effect.h b/mirror_effect.h index 6e75b26..d9c3f71 100644 --- a/mirror_effect.h +++ b/mirror_effect.h @@ -1,13 +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 #include "effect.h" +namespace movit { + class MirrorEffect : public Effect { public: MirrorEffect(); - std::string output_vertex_shader(); + 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)