X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=glow_effect.h;h=2a2af16dd3abbd7d1bded97de0aaad88475b63bf;hp=8b21e521a9449979aae90ad7df14ef903f8c6b34;hb=ddf71f853e64c3912eed4ab98bfe7503826ce8e1;hpb=020ba675b7be6ceeb284be91039efc0dc0986227 diff --git a/glow_effect.h b/glow_effect.h index 8b21e52..2a2af16 100644 --- a/glow_effect.h +++ b/glow_effect.h @@ -1,14 +1,22 @@ -#ifndef _GLOW_EFFECT_H -#define _GLOW_EFFECT_H 1 +#ifndef _MOVIT_GLOW_EFFECT_H +#define _MOVIT_GLOW_EFFECT_H 1 // Glow: Cut out the highlights of the image (everything above a certain threshold), // blur them, and overlay them onto the original image. +#include +#include +#include + #include "effect.h" +namespace movit { + class BlurEffect; -class MixEffect; +class EffectChain; class HighlightCutoffEffect; +class MixEffect; +class Node; class GlowEffect : public Effect { public: @@ -42,9 +50,13 @@ public: HighlightCutoffEffect(); virtual std::string effect_type_id() const { return "HighlightCutoffEffect"; } std::string output_fragment_shader(); + + virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; } private: float cutoff; }; -#endif // !defined(_GLOW_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_GLOW_EFFECT_H)