My first approach to writing the engine in OpenGL.