SwapBuffers() private method

private SwapBuffers ( IntPtr dc ) : bool
dc IntPtr
return bool
Exemplo n.º 1
0
 public override void SwapBuffers()
 {
     if (!Functions.SwapBuffers(this.DeviceContext))
     {
         throw new GraphicsContextException(string.Format("Failed to swap buffers for context {0} current. Error: {1}", (object)this, (object)Marshal.GetLastWin32Error()));
     }
 }
Exemplo n.º 2
0
 public override void SwapBuffers()
 {
     if (!Functions.SwapBuffers(Wgl.GetCurrentDC()))
     {
         throw new GraphicsContextException(String.Format(
                                                "Failed to swap buffers for context {0} current. Error: {1}", this, Marshal.GetLastWin32Error()));
     }
 }