Package org.lwjgl.opengl
Class GLXEXTSwapControl
java.lang.Object
org.lwjgl.opengl.GLXEXTSwapControl
Native bindings to the GLX_EXT_swap_control extension.
This extension allows an application to specify a minimum periodicity of color buffer swaps, measured in video frame periods, for a particular drawable. It also allows an application to query the swap interval and the implementation-dependent maximum swap interval of a drawable.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The current swap interval and implementation-dependent max swap interval for a particular drawable.static final int
The current swap interval and implementation-dependent max swap interval for a particular drawable. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
glXSwapIntervalEXT
(long display, long drawable, int interval) Specifies the minimum number of video frame periods per buffer swap for a particular GLX drawable (e.g.
-
Field Details
-
GLX_SWAP_INTERVAL_EXT
public static final int GLX_SWAP_INTERVAL_EXTThe current swap interval and implementation-dependent max swap interval for a particular drawable.- See Also:
-
GLX_MAX_SWAP_INTERVAL_EXT
public static final int GLX_MAX_SWAP_INTERVAL_EXTThe current swap interval and implementation-dependent max swap interval for a particular drawable.- See Also:
-
-
Method Details
-
glXSwapIntervalEXT
public static void glXSwapIntervalEXT(long display, long drawable, int interval) Specifies the minimum number of video frame periods per buffer swap for a particular GLX drawable (e.g. a value of two means that the color buffers will be swapped at most every other video frame). The interval takes effect whenSwapBuffers
is first called on the drawable subsequent to theglXSwapIntervalEXT
call.- Parameters:
display
- the connection to the X serverdrawable
- the drawableinterval
- the swap interval
-