X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=widgets.cpp;h=3bf53c77e428530dc5b731f33460077b35db2f27;hp=fb49993b23349743e049c7fa4bcebb2c3acefded;hb=9499a20d6c4c017ecfa96d0d32f5ee971ae93461;hpb=ab636361e865c389fe60584562372ec39ac4c511 diff --git a/widgets.cpp b/widgets.cpp index fb49993..3bf53c7 100644 --- a/widgets.cpp +++ b/widgets.cpp @@ -1,11 +1,13 @@ +#include #include #include "widgets.h" #include "util.h" -#include "opengl.h" #define HSV_WHEEL_SIZE 128 +namespace movit { + GLuint hsv_wheel_num; void draw_hsv_wheel(float y, float rad, float theta, float value) @@ -130,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); @@ -156,3 +157,5 @@ void read_colorwheel(float xf, float yf, float *rad, float *theta, float *value) } } + +} // namespace movit