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)
示例#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())
示例#3
0
 def flip(self):
     wgl.wglSwapLayerBuffers(self.canvas.hdc, wgl.WGL_SWAP_MAIN_PLANE)
示例#4
0
 def flip(self):
     wgl.wglSwapLayerBuffers(self.canvas.hdc, wgl.WGL_SWAP_MAIN_PLANE)
示例#5
0
 def flip(self):
     self.draw_mouse_cursor()
     wgl.wglSwapLayerBuffers(self._dc, wgl.WGL_SWAP_MAIN_PLANE)