6aafb74d2b5f543cfcd98f4cd0311e0b39ebfb00
[movit] / sandbox_effect.cpp
1 #include <GL/glew.h>
2
3 #include "sandbox_effect.h"
4 #include "util.h"
5
6 SandboxEffect::SandboxEffect()
7         : parm(0.0f)
8 {
9         register_float("parm", &parm);
10 }
11
12 std::string SandboxEffect::output_fragment_shader()
13 {
14         return read_file("sandbox_effect.frag");
15 }
16
17 void SandboxEffect::set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num)
18 {
19         Effect::set_gl_state(glsl_program_num, prefix, sampler_num);
20
21         // Any OpenGL state you might want to set, goes here.
22 }