SwapBuffers() private method

private SwapBuffers ( IntPtr display, IntPtr drawable ) : void
display System.IntPtr
drawable System.IntPtr
return void
Beispiel #1
0
 public override void SwapBuffers()
 {
     if (currentWindow.Display == IntPtr.Zero || currentWindow.WindowHandle == IntPtr.Zero)
     {
         throw new InvalidOperationException(
                   String.Format("Window is invalid. Display ({0}), Handle ({1}).", currentWindow.Display, currentWindow.WindowHandle));
     }
     Glx.SwapBuffers(currentWindow.Display, currentWindow.WindowHandle);
 }
Beispiel #2
0
 public override void SwapBuffers()
 {
     if (this.Display == IntPtr.Zero || this.currentWindow.WindowHandle == IntPtr.Zero)
     {
         throw new InvalidOperationException(string.Format("Window is invalid. Display ({0}), Handle ({1}).", (object)this.Display, (object)this.currentWindow.WindowHandle));
     }
     using (new XLock(this.Display))
         Glx.SwapBuffers(this.Display, this.currentWindow.WindowHandle);
 }