internal void Present ( int syncInterval )
{
syncInterval = MathUtil.Clamp( syncInterval, 0, 3 );
lock (deviceContext) {
if (requestScreenShotPath != null ) {
var path = requestScreenShotPath;
requestScreenShotPath = null;
BackbufferColor.SaveToFile( path );
Log.Message("screenshot saved: {0}", path );
}
display.SwapBuffers( syncInterval );
display.Update();
}
}