]> git.sesse.net Git - movit/blobdiff - widgets.cpp
Check for __APPLE__ instead of __DARWIN__.
[movit] / widgets.cpp
index 5742e457a8117f9690de9c9aeec852e62a3a4f67..87260215e2b1b4bb3f2e916c98e9e1d4adb37a37 100644 (file)
@@ -1,11 +1,13 @@
+#include <epoxy/gl.h>
 #include <math.h>
-#include <GL/glew.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)
@@ -155,3 +157,5 @@ void read_colorwheel(float xf, float yf, float *rad, float *theta, float *value)
        }
 }
 
+
+}  // namespace movit