]> git.sesse.net Git - movit/blob - sandbox_effect.h
Make get_current_context_identifier() understand EGL.
[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 <epoxy/gl.h>
12 #include <string>
13
14 #include "effect.h"
15
16 namespace movit {
17
18 class SandboxEffect : public Effect {
19 public:
20         SandboxEffect();
21         virtual std::string effect_type_id() const { return "SandboxEffect"; }
22         std::string output_fragment_shader();
23
24         void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
25
26 private:
27         float parm;
28 };
29
30 }  // namespace movit
31
32 #endif // !defined(_MOVIT_SANDBOX_EFFECT_H)