コード例 #1
0
ファイル: xlib.py プロジェクト: LaneLutgen/CSCI338-BinPacking
    def flip(self):
        if not self.glx_window:
            return

        if self._vsync:
            self._wait_vsync()
        glx.glXSwapBuffers(self.x_display, self.glx_window)
コード例 #2
0
    def flip(self):
        if not self.glx_window:
            return

        if self._vsync:
            self._wait_vsync()
        glx.glXSwapBuffers(self.x_display, self.glx_window)
コード例 #3
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.config._display, self.window.xid)
コード例 #4
0
ファイル: GtkGlDrawingArea.py プロジェクト: HuFlungDu/GSEF
 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())
コード例 #5
0
ファイル: wxtest.py プロジェクト: adam-urbanczyk/chemshapes
    def flip(self):
        if not self._window:
            return

        if self._glx_1_3:
            glx.glXSwapBuffers(self._x_display, self._glx_window)
        else:
            glx.glXSwapBuffers(self._x_display, self._window)
コード例 #6
0
    def flip(self):
        if not self._window:
            return

        if self._glx_1_3:
            glx.glXSwapBuffers(self._x_display, self._glx_window)
        else:
            glx.glXSwapBuffers(self._x_display, self._window)
コード例 #7
0
ファイル: __init__.py プロジェクト: KevinGoodsell/sympy
    def flip(self):
        self.draw_mouse_cursor()

        if self._vsync and self._have_SGI_video_sync and self._use_video_sync:
            count = c_uint()
            glxext_arb.glXGetVideoSyncSGI(byref(count))
            glxext_arb.glXWaitVideoSyncSGI(
                2, (count.value + 1) % 2, byref(count))

        if self._glx_1_3:
            if not self._glx_window:
                self._glx_window = glx.glXCreateWindow(self._x_display,
                    self._config._fbconfig, self._window, None)
            glx.glXSwapBuffers(self._x_display, self._glx_window)
        else:
            glx.glXSwapBuffers(self._x_display, self._window)
コード例 #8
0
    def flip(self):
        self.draw_mouse_cursor()

        if self._vsync and self._have_SGI_video_sync and self._use_video_sync:
            count = c_uint()
            glxext_arb.glXGetVideoSyncSGI(byref(count))
            glxext_arb.glXWaitVideoSyncSGI(2, (count.value + 1) % 2,
                                           byref(count))

        if self._glx_1_3:
            if not self._glx_window:
                self._glx_window = glx.glXCreateWindow(self._x_display,
                                                       self._config._fbconfig,
                                                       self._window, None)
            glx.glXSwapBuffers(self._x_display, self._glx_window)
        else:
            glx.glXSwapBuffers(self._x_display, self._window)