X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=alpha_multiplication_effect.h;h=f342719c5987b0e3304e5b0782811829b3680faa;hp=2425a427e2764822287f3f54443fb5f896e61f32;hb=f216b7bef5a968c89f6fc78e83cc26a91e504a8a;hpb=37f56fcbe571b2322243f6de59494bf9e0cbb37a diff --git a/alpha_multiplication_effect.h b/alpha_multiplication_effect.h index 2425a42..f342719 100644 --- a/alpha_multiplication_effect.h +++ b/alpha_multiplication_effect.h @@ -1,5 +1,5 @@ -#ifndef _ALPHA_MULTIPLICATION_EFFECT_H -#define _ALPHA_MULTIPLICATION_EFFECT_H 1 +#ifndef _MOVIT_ALPHA_MULTIPLICATION_EFFECT_H +#define _MOVIT_ALPHA_MULTIPLICATION_EFFECT_H 1 // Convert postmultiplied alpha to premultiplied alpha, simply by multiplying. @@ -7,11 +7,16 @@ #include "effect.h" +namespace movit { + class AlphaMultiplicationEffect : public Effect { public: AlphaMultiplicationEffect() {} virtual std::string effect_type_id() const { return "AlphaMultiplicationEffect"; } std::string output_fragment_shader(); + virtual bool one_to_one_sampling() const { return true; } }; -#endif // !defined(_ALPHA_MULTIPLICATION_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_ALPHA_MULTIPLICATION_EFFECT_H)