]> git.sesse.net Git - movit/blobdiff - vignette_effect.h
Stop linking unit tests et al against SDL_image and other things that only the demo...
[movit] / vignette_effect.h
index d7c66f63b0d4f2146972418169755e30f0810db7..d13bf85d01c36b47a47cdd53641efd8f6f5fe6ad 100644 (file)
@@ -4,14 +4,19 @@
 // A circular vignette, falling off as cosĀ² of the distance from the center
 // (the classic formula for approximating a real lens).
 
+#include <GL/glew.h>
+#include <string>
+
 #include "effect.h"
 
 class VignetteEffect : public Effect {
 public:
        VignetteEffect();
+       virtual std::string effect_type_id() const { return "VignetteEffect"; }
        std::string output_fragment_shader();
 
        virtual bool needs_srgb_primaries() const { return false; }
+       virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
 
        void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);