]> git.sesse.net Git - movit/blobdiff - widgets.cpp
Emulate glReadPixels of GL_ALPHA.
[movit] / widgets.cpp
index 09d878ed4fa065ce1fb112b9d405d16335c34d3d..87260215e2b1b4bb3f2e916c98e9e1d4adb37a37 100644 (file)
@@ -1,14 +1,13 @@
-#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)
@@ -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