An OpenGL 3D rendering program in C++