X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=lift_gamma_gain_effect.cpp;h=5bc989aba08fbb5e2a5291cfcbf142469705f57f;hp=2dc827885cb46a8a005427c18a9e247087abd781;hb=f8e636666b3d36f97b125bc1a0f0f582c5026c7f;hpb=a93b0c94f68bf897adfdca95b292494497fa4f7f diff --git a/lift_gamma_gain_effect.cpp b/lift_gamma_gain_effect.cpp index 2dc8278..5bc989a 100644 --- a/lift_gamma_gain_effect.cpp +++ b/lift_gamma_gain_effect.cpp @@ -1,12 +1,12 @@ -#define GL_GLEXT_PROTOTYPES 1 - +#include #include -#include -#include +#include "effect_util.h" #include "lift_gamma_gain_effect.h" #include "util.h" +using namespace std; + LiftGammaGainEffect::LiftGammaGainEffect() : lift(0.0f, 0.0f, 0.0f), gamma(1.0f, 1.0f, 1.0f), @@ -17,12 +17,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);