public override void PaintToOutputWindow() { if (!_isInitGLControl) { return; } #if DEBUG _stopWatch.Reset(); _stopWatch.Start(); #endif _windowControl.MakeCurrent(); _openGLViewport.PaintMe(); _windowControl.SwapBuffers(); // #if DEBUG _stopWatch.Stop(); long millisec_per_frame = _stopWatch.ElapsedMilliseconds; int fps = (int)(1000.0f / millisec_per_frame); System.Diagnostics.Debug.WriteLine("fps:" + fps); #endif }
public void SwapBuffers() { _viewport.SwapBuffers(); }