Class GLXSGIXSwapBarrier



  • public class GLXSGIXSwapBarrier
    extends java.lang.Object
    Native bindings to the GLX_SGIX_swap_barrier extension.

    This extension provides the capability to sychronize the buffer swaps of different swap groups.

    Requires GLX_SGIX_swap_group.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void glXBindSwapBarrierSGIX(long display, long drawable, int barrier)
      Binds the swap group that contains drawable to barrier.
      static int glXQueryMaxSwapBarriersSGIX(long display, int screen, int[] max)
      Array version of: QueryMaxSwapBarriersSGIX
      static int glXQueryMaxSwapBarriersSGIX(long display, int screen, java.nio.IntBuffer max)
      Returns in max the maximum number of barriers supported by an implementation on screen.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • glXBindSwapBarrierSGIX

        public static void glXBindSwapBarrierSGIX(long display,
                                                  long drawable,
                                                  int barrier)
        Binds the swap group that contains drawable to barrier. Subsequent buffer swaps for that group will be subject to this binding, until the group is unbound from barrier. If barrier is zero, the group is unbound from its current barrier, if any.
        Parameters:
        display - the connection to the X server
        drawable - the swap group GLXDrawable
        barrier - the swap barrier
      • glXQueryMaxSwapBarriersSGIX

        public static int glXQueryMaxSwapBarriersSGIX(long display,
                                                      int screen,
                                                      java.nio.IntBuffer max)
        Returns in max the maximum number of barriers supported by an implementation on screen.
        Parameters:
        display - the connection to the X server
        screen - the screen
        max - returns the maximum number of barriers
      • glXQueryMaxSwapBarriersSGIX

        public static int glXQueryMaxSwapBarriersSGIX(long display,
                                                      int screen,
                                                      int[] max)
        Array version of: QueryMaxSwapBarriersSGIX