X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=sandbox_effect.cpp;h=76e1f5cf81625944f3f0df1faa3d1ccef5f31121;hp=561048d416fd0241af4e4bac1c9edc34e9a4c1e3;hb=87e2a30d7da9a7778356f1b93593b1296dedff71;hpb=ab636361e865c389fe60584562372ec39ac4c511 diff --git a/sandbox_effect.cpp b/sandbox_effect.cpp index 561048d..76e1f5c 100644 --- a/sandbox_effect.cpp +++ b/sandbox_effect.cpp @@ -1,9 +1,11 @@ -#include -#include +#include #include "sandbox_effect.h" #include "util.h" -#include "opengl.h" + +using namespace std; + +namespace movit { SandboxEffect::SandboxEffect() : parm(0.0f) @@ -11,14 +13,16 @@ SandboxEffect::SandboxEffect() register_float("parm", &parm); } -std::string SandboxEffect::output_fragment_shader() +string SandboxEffect::output_fragment_shader() { return read_file("sandbox_effect.frag"); } -void SandboxEffect::set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num) +void SandboxEffect::set_gl_state(GLuint glsl_program_num, const string &prefix, unsigned *sampler_num) { Effect::set_gl_state(glsl_program_num, prefix, sampler_num); // Any OpenGL state you might want to set, goes here. } + +} // namespace movit