]> git.sesse.net Git - movit/blob - sandbox_effect.h
Another NULL initializer, mostly to get Coverity to be quiet.
[movit] / sandbox_effect.h
1 #ifndef _SANDBOX_EFFECT_H
2 #define _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 "effect.h"
12
13 class SandboxEffect : public Effect {
14 public:
15         SandboxEffect();
16         virtual std::string effect_type_id() const { return "SandboxEffect"; }
17         std::string output_fragment_shader();
18
19         void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
20
21 private:
22         float parm;
23 };
24
25 #endif // !defined(_SANDBOX_EFFECT_H)