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