-#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)
{
{
GLuint obj = glCreateShader(type);
const GLchar* source[] = { shader_src.data() };
- const GLint length[] = { shader_src.size() };
+ const GLint length[] = { (GLint)shader_src.size() };
glShaderSource(obj, 1, source, length);
glCompileShader(obj);