Snake 2D application with C + + and OpenGL