OpenGL rendering utils for C++