X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=widgets.cpp;h=87260215e2b1b4bb3f2e916c98e9e1d4adb37a37;hp=09d878ed4fa065ce1fb112b9d405d16335c34d3d;hb=3789397e29df3bade367c8963b050d8add510c0f;hpb=a04ce272078182de6bb49e5ea9834713f3d72cae diff --git a/widgets.cpp b/widgets.cpp index 09d878e..8726021 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