X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=mirror_effect.h;h=da3a7117601c342ca9150f66e18fe472258340dc;hp=343eb173a52a96c717ee5bc49c44314bb9db6ae4;hb=9be82157cfc320d6669d82ab9057862067b77325;hpb=8fe95ce120431f3c593828d0f26185580943c7db diff --git a/mirror_effect.h b/mirror_effect.h index 343eb17..da3a711 100644 --- a/mirror_effect.h +++ b/mirror_effect.h @@ -1,17 +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_fragment_shader(); + std::string effect_type_id() const override { return "MirrorEffect"; } + std::string output_fragment_shader() override; - virtual bool needs_linear_light() const { return false; } - virtual bool needs_srgb_primaries() const { return false; } + 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)