]> git.sesse.net Git - movit/blobdiff - sandbox_effect.h
Add a “sandbox effect” that does nothing but is a useful playground for development...
[movit] / sandbox_effect.h
diff --git a/sandbox_effect.h b/sandbox_effect.h
new file mode 100644 (file)
index 0000000..391be6d
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef _SANDBOX_EFFECT_H
+#define _SANDBOX_EFFECT_H 1
+
+// This effect, by default, does nothing.
+//
+// But imagine all the cool things you can make it do! Thus, the SandboxEffect
+// is intended to be a sandbox for you to have a place to write your test or
+// 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 "effect.h"
+
+class SandboxEffect : public Effect {
+public:
+       SandboxEffect();
+       std::string output_fragment_shader();
+
+       void set_uniforms(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
+
+private:
+       float parm;
+};
+
+#endif // !defined(_SANDBOX_EFFECT_H)