X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=widgets.cpp;h=3bf53c77e428530dc5b731f33460077b35db2f27;hp=09d878ed4fa065ce1fb112b9d405d16335c34d3d;hb=9499a20d6c4c017ecfa96d0d32f5ee971ae93461;hpb=a04ce272078182de6bb49e5ea9834713f3d72cae diff --git a/widgets.cpp b/widgets.cpp index 09d878e..3bf53c7 100644 --- a/widgets.cpp +++ b/widgets.cpp @@ -1,14 +1,13 @@ -#define GL_GLEXT_PROTOTYPES 1 - +#include #include -#include -#include #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) @@ -133,7 +132,6 @@ void make_hsv_wheel_texture() hsv_pix[(y * HSV_WHEEL_SIZE + x) * 4 + 3] = 255; } } - printf("\n"); } glBindTexture(GL_TEXTURE_2D, hsv_wheel_num); @@ -159,3 +157,5 @@ void read_colorwheel(float xf, float yf, float *rad, float *theta, float *value) } } + +} // namespace movit