Simple game on c++ using OpenGL