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 void
glXBindSwapBarrierSGIX
(long display, long drawable, int barrier) Binds the swap group that containsdrawable
tobarrier
.static boolean
glXQueryMaxSwapBarriersSGIX
(long display, int screen, int[] max) Array version of:QueryMaxSwapBarriersSGIX
static boolean
glXQueryMaxSwapBarriersSGIX
(long display, int screen, IntBuffer max) Returns inmax
the maximum number of barriers supported by an implementation onscreen
.static int
nglXQueryMaxSwapBarriersSGIX
(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 containsdrawable
tobarrier
. Subsequent buffer swaps for that group will be subject to this binding, until the group is unbound frombarrier
. Ifbarrier
is 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 inmax
the 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
-