Example #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)
Example #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)
Example #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))
Example #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))