]> git.sesse.net Git - movit/blobdiff - sandbox_effect.h
Don't dither alpha.
[movit] / sandbox_effect.h
index 44e8d3fdbee40464909a1f5192f21060db3868c0..80ef8a23adfa6bca98b20b0b98bca56620026fdc 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SANDBOX_EFFECT_H
-#define _SANDBOX_EFFECT_H 1
+#ifndef _MOVIT_SANDBOX_EFFECT_H
+#define _MOVIT_SANDBOX_EFFECT_H 1
 
 // This effect, by default, does nothing.
 //
@@ -8,11 +8,15 @@
 // throwaway code. When you're happy, you can do a bit of search and replace
 // to give it a proper name and its own place in the build system.
 
+#include <GL/glew.h>
+#include <string>
+
 #include "effect.h"
 
 class SandboxEffect : public Effect {
 public:
        SandboxEffect();
+       virtual std::string effect_type_id() const { return "SandboxEffect"; }
        std::string output_fragment_shader();
 
        void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
@@ -21,4 +25,4 @@ private:
        float parm;
 };
 
-#endif // !defined(_SANDBOX_EFFECT_H)
+#endif // !defined(_MOVIT_SANDBOX_EFFECT_H)