Cache the FFT support texture.
[movit] / lift_gamma_gain_effect.cpp
index c26386c..e9832f4 100644 (file)
@@ -1,8 +1,13 @@
+#include <GL/glew.h>
 #include <math.h>
 
+#include "effect_util.h"
 #include "lift_gamma_gain_effect.h"
 #include "util.h"
-#include "opengl.h"
+
+using namespace std;
+
+namespace movit {
 
 LiftGammaGainEffect::LiftGammaGainEffect()
        : lift(0.0f, 0.0f, 0.0f),
@@ -14,12 +19,12 @@ LiftGammaGainEffect::LiftGammaGainEffect()
        register_vec3("gain", (float *)&gain);
 }
 
-std::string LiftGammaGainEffect::output_fragment_shader()
+string LiftGammaGainEffect::output_fragment_shader()
 {
        return read_file("lift_gamma_gain_effect.frag");
 }
 
-void LiftGammaGainEffect::set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num)
+void LiftGammaGainEffect::set_gl_state(GLuint glsl_program_num, const string &prefix, unsigned *sampler_num)
 {
        Effect::set_gl_state(glsl_program_num, prefix, sampler_num);
 
@@ -35,3 +40,5 @@ void LiftGammaGainEffect::set_gl_state(GLuint glsl_program_num, const std::strin
                2.2f / gamma.b);
        set_uniform_vec3(glsl_program_num, prefix, "inv_gamma_22", (float *)&inv_gamma_22);
 }
+
+}  // namespace movit