]> git.sesse.net Git - movit/blobdiff - util.h
Small refactoring.
[movit] / util.h
diff --git a/util.h b/util.h
index 1c2f6a669f6bec63d9a4531c9b3c57986ae70c8c..dcb84a0cbf7e259b8717c9861d2cc066d386a032 100644 (file)
--- a/util.h
+++ b/util.h
@@ -8,6 +8,8 @@
 
 #include <GL/gl.h>
 
+#define BUFFER_OFFSET(i) ((char *)NULL + (i))
+
 // assumes h in [0, 2pi> or [-pi, pi>
 void hsv2rgb(float h, float s, float v, float *r, float *g, float *b);