]> git.sesse.net Git - movit/blobdiff - sandbox_effect.cpp
Remove C++11 dependency from ResampleEffect.
[movit] / sandbox_effect.cpp
index 6aafb74d2b5f543cfcd98f4cd0311e0b39ebfb00..1ec093d43fbda2fd9bb370f076f9fbd6aadb9c1a 100644 (file)
@@ -1,22 +1,28 @@
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 
 #include "sandbox_effect.h"
 #include "util.h"
 
+using namespace std;
+
+namespace movit {
+
 SandboxEffect::SandboxEffect()
        : parm(0.0f)
 {
        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