-#ifndef _LIFT_GAMMA_GAIN_EFFECT_H
-#define _LIFT_GAMMA_GAIN_EFFECT_H 1
+#ifndef _MOVIT_LIFT_GAMMA_GAIN_EFFECT_H
+#define _MOVIT_LIFT_GAMMA_GAIN_EFFECT_H 1
// A simple lift/gamma/gain effect, used for color grading.
//
// Also, gamma is a case where we would not want premultiplied alpha.
// Thus, we have to divide away alpha first, and then re-multiply it back later.
-#include <GL/glew.h>
+#include <epoxy/gl.h>
#include <string>
#include "effect.h"
+namespace movit {
+
class LiftGammaGainEffect : public Effect {
public:
LiftGammaGainEffect();
virtual std::string effect_type_id() const { return "LiftGammaGainEffect"; }
virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }
+ virtual bool one_to_one_sampling() const { return true; }
std::string output_fragment_shader();
void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
RGBTriplet lift, gamma, gain;
};
-#endif // !defined(_LIFT_GAMMA_GAIN_EFFECT_H)
+} // namespace movit
+
+#endif // !defined(_MOVIT_LIFT_GAMMA_GAIN_EFFECT_H)