game engine in C++ and OpenGL 3.1