Package org.lwjgl.opengl
Class GLXSGIXSwapBarrier
- java.lang.Object
-
- org.lwjgl.opengl.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 containsdrawable
tobarrier
.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 inmax
the maximum number of barriers supported by an implementation onscreen
.
-
-
-
Method Detail
-
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
-
glXQueryMaxSwapBarriersSGIX
public static int glXQueryMaxSwapBarriersSGIX(long display, int screen, java.nio.IntBuffer max)
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 int glXQueryMaxSwapBarriersSGIX(long display, int screen, int[] max)
Array version of:QueryMaxSwapBarriersSGIX
-
-