private void EndFrame() { //Console.WriteLine("EndFrame()"); GL.Finish(); Performance.EndFrame(); if (OnFrameReady != null) { OnFrameReady(this, new EventArgs()); } }
private void EndFrame( ) { Performance.EndFrame( ); OnFrameReady?.Invoke(this, new EventArgs( )); GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); }