Exemplo n.º 1
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)
Exemplo n.º 2
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)
Exemplo n.º 3
0
 def _wait_vsync(self):
     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))
Exemplo n.º 4
0
 def _wait_vsync(self):
     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))