Package org.lwjgl.opengl
Class GLXEXTSwapControl
- java.lang.Object
-
- org.lwjgl.opengl.GLXEXTSwapControl
-
public class GLXEXTSwapControl extends java.lang.Object
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
Fields Modifier and Type Field and Description static int
GLX_MAX_SWAP_INTERVAL_EXT
GLX_SWAP_INTERVAL_EXTThe current swap interval and implementation-dependent max swap interval for a particular drawable.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description 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.
-
-
-
Field Detail
-
GLX_SWAP_INTERVAL_EXT, GLX_MAX_SWAP_INTERVAL_EXT
The current swap interval and implementation-dependent max swap interval for a particular drawable.
-
-
Method Detail
-
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
-
-