]> git.sesse.net Git - movit/blob - sandbox_effect.h
Some tweaks to the libtool parts of the Makefile.
[movit] / sandbox_effect.h
1 #ifndef _MOVIT_SANDBOX_EFFECT_H
2 #define _MOVIT_SANDBOX_EFFECT_H 1
3
4 // This effect, by default, does nothing.
5 //
6 // But imagine all the cool things you can make it do! Thus, the SandboxEffect
7 // is intended to be a sandbox for you to have a place to write your test or
8 // throwaway code. When you're happy, you can do a bit of search and replace
9 // to give it a proper name and its own place in the build system.
10
11 #include <GL/glew.h>
12 #include <string>
13
14 #include "effect.h"
15
16 class SandboxEffect : public Effect {
17 public:
18         SandboxEffect();
19         virtual std::string effect_type_id() const { return "SandboxEffect"; }
20         std::string output_fragment_shader();
21
22         void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
23
24 private:
25         float parm;
26 };
27
28 #endif // !defined(_MOVIT_SANDBOX_EFFECT_H)