private void ResizeHandler(object sender, EventArgs e) { GL.Viewport(ClientRectangle); var aspectRatio = Width / (float)Height; Projection = Matrix4.CreatePerspectiveFieldOfView(MathHelper.PiOver4, aspectRatio, 1, 512); GL.MatrixMode(MatrixMode.Projection); GL.LoadMatrix(ref Projection); }