def flip(self):
     if sys.platform == 'darwin':
         agl.aglSwapBuffers(self._agl_context)
         _aglcheck()
     elif sys.platform in ('win32', 'cygwin'):
         wgl.wglSwapLayerBuffers(self._dc, wgl.WGL_SWAP_MAIN_PLANE)
     else:
         glx.glXSwapBuffers(self.config._display, self.window.xid)
Beispiel #2
0
 def flip(self):
     if sys.platform == 'darwin':
         agl.aglSwapBuffers(self._agl_context)
         _aglcheck()
     elif sys.platform in ('win32', 'cygwin'):
         wgl.wglSwapLayerBuffers(self._dc, wgl.WGL_SWAP_MAIN_PLANE)
     else:
         glx.glXSwapBuffers(self.context.x_display, self.get_property('window').get_xid())
Beispiel #3
0
 def flip(self):
     wgl.wglSwapLayerBuffers(self.canvas.hdc, wgl.WGL_SWAP_MAIN_PLANE)
Beispiel #4
0
 def flip(self):
     wgl.wglSwapLayerBuffers(self.canvas.hdc, wgl.WGL_SWAP_MAIN_PLANE)
Beispiel #5
0
 def flip(self):
     self.draw_mouse_cursor()
     wgl.wglSwapLayerBuffers(self._dc, wgl.WGL_SWAP_MAIN_PLANE)