11 // assumes h in [0, 2pi> or [-pi, pi>
12 void hsv2rgb(float h, float s, float v, float *r, float *g, float *b);
14 std::string read_file(const std::string &filename);
15 GLhandleARB compile_shader(const std::string &shader_src, GLenum type);
20 #define check_error() { int err = glGetError(); if (err != GL_NO_ERROR) { printf("GL error 0x%x at %s:%d\n", err, __FILE__, __LINE__); exit(1); } }
23 #endif // !defined(_UTIL_H)