-#define GL_GLEXT_PROTOTYPES 1
-
+#include <epoxy/gl.h>
#include <math.h>
-#include <GL/gl.h>
-#include <GL/glext.h>
#include "widgets.h"
#include "util.h"
#define HSV_WHEEL_SIZE 128
+namespace movit {
+
GLuint hsv_wheel_num;
void draw_hsv_wheel(float y, float rad, float theta, float value)
hsv_pix[(y * HSV_WHEEL_SIZE + x) * 4 + 3] = 255;
}
}
- printf("\n");
}
glBindTexture(GL_TEXTURE_2D, hsv_wheel_num);
}
}
+
+} // namespace movit