-// assumes h in [0, 2pi> or [-pi, pi>
+#define BUFFER_OFFSET(i) ((char *)NULL + (i))
+
+// Converts a HSV color to RGB. Assumes h in [0, 2pi> or [-pi, pi>
void hsv2rgb(float h, float s, float v, float *r, float *g, float *b);
// Column major (same as OpenGL).
typedef double Matrix3x3[9];
void hsv2rgb(float h, float s, float v, float *r, float *g, float *b);
// Column major (same as OpenGL).
typedef double Matrix3x3[9];
-GLhandleARB compile_shader(const std::string &shader_src, GLenum type);
+
+// Compile the given GLSL shader (typically a vertex or fragment shader)
+// and return the object number.
+GLuint compile_shader(const std::string &shader_src, GLenum type);
+
+// Compute a * b.