a C++ version of an old OpenGL renderer I wrote