private static void OnRenderFrame() { Gl.Viewport(0, 0, ConfigurationHandler.WindowWidth, ConfigurationHandler.WindowHeight); Gl.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); Gl.ClearColor(0.53f, 0.8f, 0.98f, 1); ShaderProgram.Use(); ShaderProgram["projection_matrix"].SetValue(Matrix4.CreatePerspectiveFieldOfView(0.45f, (float)ConfigurationHandler.WindowWidth / ConfigurationHandler.WindowHeight, 0.1f, 1000f)); ShaderProgram["view_matrix"].SetValue(Matrix4.LookAt(new Vector3(0, 0, 10), Vector3.Zero, Vector3.Up)); Shape.Draw(); Grid.Draw(); Glut.glutSwapBuffers(); Shape.Dispose(); Grid.Dispose(); }