Class GLXSGIXSwapBarrier

java.lang.Object
org.lwjgl.opengl.GLXSGIXSwapBarrier

public class GLXSGIXSwapBarrier extends 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 Details

    • 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
    • nglXQueryMaxSwapBarriersSGIX

      public static int nglXQueryMaxSwapBarriersSGIX(long display, int screen, long max)
      Unsafe version of: QueryMaxSwapBarriersSGIX
    • glXQueryMaxSwapBarriersSGIX

      public static boolean glXQueryMaxSwapBarriersSGIX(long display, int screen, 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 boolean glXQueryMaxSwapBarriersSGIX(long display, int screen, int[] max)
      Array version of: QueryMaxSwapBarriersSGIX