-#define GL_GLEXT_PROTOTYPES 1
-
#include <math.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
#include <assert.h>
#include "blur_effect.h"
#include "util.h"
+#include "opengl.h"
// Must match blur_effect.frag.
#define NUM_TAPS 16
-#define GL_GLEXT_PROTOTYPES 1
-
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "effect_chain.h"
#include "util.h"
-#include <GL/gl.h>
-#include <GL/glext.h>
+#include "opengl.h"
GLint get_uniform_location(GLuint glsl_program_num, const std::string &prefix, const std::string &key)
{
#include <string>
#include <vector>
-#include <GL/gl.h>
+#include "opengl.h"
class EffectChain;
#include <string.h>
#include <assert.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
-
#include <algorithm>
#include <set>
#include <stack>
#include "gamma_compression_effect.h"
#include "colorspace_conversion_effect.h"
#include "input.h"
+#include "opengl.h"
EffectChain::EffectChain(unsigned width, unsigned height)
: width(width),
-#define GL_GLEXT_PROTOTYPES 1
-
#include <string.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
#include <assert.h>
#include "flat_input.h"
#include "util.h"
+#include "opengl.h"
FlatInput::FlatInput(ImageFormat image_format, unsigned width, unsigned height)
: image_format(image_format),
-#define GL_GLEXT_PROTOTYPES 1
-
#include <math.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
#include "lift_gamma_gain_effect.h"
#include "util.h"
+#include "opengl.h"
LiftGammaGainEffect::LiftGammaGainEffect()
: lift(0.0f, 0.0f, 0.0f),
#include <SDL/SDL_opengl.h>
#include <SDL/SDL_image.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
-
#include "effect.h"
#include "effect_chain.h"
#include "util.h"
+#include "opengl.h"
#include "widgets.h"
#include "flat_input.h"
-#define GL_GLEXT_PROTOTYPES 1
-
#include <math.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
#include <assert.h>
#include "sandbox_effect.h"
#include "util.h"
+#include "opengl.h"
SandboxEffect::SandboxEffect()
: parm(0.0f)
-#define GL_GLEXT_PROTOTYPES 1
-
#include <stdio.h>
#include <assert.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
-
#include <math.h>
#include "util.h"
+#include "opengl.h"
void hsv2rgb(float h, float s, float v, float *r, float *g, float *b)
{
#include <string>
-#include <GL/gl.h>
+#include "opengl.h"
#define BUFFER_OFFSET(i) ((char *)NULL + (i))
-#define GL_GLEXT_PROTOTYPES 1
-
#include <math.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
#include "vignette_effect.h"
#include "util.h"
+#include "opengl.h"
VignetteEffect::VignetteEffect()
: center(0.5f, 0.5f),
-#define GL_GLEXT_PROTOTYPES 1
-
#include <math.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
#include "widgets.h"
#include "util.h"
+#include "opengl.h"
#define HSV_WHEEL_SIZE 128
-#define GL_GLEXT_PROTOTYPES 1
-
#include <string.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
#include <assert.h>
#include "ycbcr_input.h"
#include "util.h"
+#include "opengl.h"
YCbCrInput::YCbCrInput(const ImageFormat &image_format,
const YCbCrFormat &ycbcr_format,