protected override void OnRenderFrame(FrameEventArgs e) { this.Title = $"(Vsync: {VSync}) FPS: {1f / e.Time:0}"; GL.MatrixMode(MatrixMode.Modelview); GL.LoadIdentity(); GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); DibujarLineas(); GL.PushMatrix(); GL.Translate(10, 1, 10); DibujarCubo(); GL.PopMatrix(); GL.PushMatrix(); GL.Rotate(theta, 0.0, 1.0, 0.0); GL.Rotate(beta, 1.0, 0.0, 0.0); robot.Dibujar(); GL.PopMatrix(); DibujarVidrio(); SwapBuffers(); }