Package org.lwjgl.opengl
Class GLXSGIXSwapBarrier
java.lang.Object
org.lwjgl.opengl.GLXSGIXSwapBarrier
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
Modifier and TypeMethodDescriptionstatic voidglXBindSwapBarrierSGIX(long display, long drawable, int barrier) Binds the swap group that containsdrawabletobarrier.static booleanglXQueryMaxSwapBarriersSGIX(long display, int screen, int[] max) Array version of:QueryMaxSwapBarriersSGIXstatic booleanglXQueryMaxSwapBarriersSGIX(long display, int screen, IntBuffer max) Returns inmaxthe maximum number of barriers supported by an implementation onscreen.static intnglXQueryMaxSwapBarriersSGIX(long display, int screen, long max) Unsafe version of:QueryMaxSwapBarriersSGIX
-
Method Details
-
glXBindSwapBarrierSGIX
public static void glXBindSwapBarrierSGIX(long display, long drawable, int barrier) Binds the swap group that containsdrawabletobarrier. Subsequent buffer swaps for that group will be subject to this binding, until the group is unbound frombarrier. Ifbarrieris zero, the group is unbound from its current barrier, if any.- Parameters:
display- the connection to the X serverdrawable- the swap group GLXDrawablebarrier- the swap barrier
-
nglXQueryMaxSwapBarriersSGIX
public static int nglXQueryMaxSwapBarriersSGIX(long display, int screen, long max) Unsafe version of:QueryMaxSwapBarriersSGIX -
glXQueryMaxSwapBarriersSGIX
Returns inmaxthe maximum number of barriers supported by an implementation onscreen.- Parameters:
display- the connection to the X serverscreen- the screenmax- returns the maximum number of barriers
-
glXQueryMaxSwapBarriersSGIX
public static boolean glXQueryMaxSwapBarriersSGIX(long display, int screen, int[] max) Array version of:QueryMaxSwapBarriersSGIX
-