public class WGLEXTSwapControl
extends java.lang.Object
This extension allows an application to specify a minimum periodicity of color buffer swaps, measured in video frame periods.
Requires WGL_EXT_extensions_string.
| Modifier and Type | Method and Description |
|---|---|
static int |
wglGetSwapIntervalEXT()
Returns the current swap interval for the window associated with the current context.
|
static boolean |
wglSwapIntervalEXT(int interval)
Specifies the minimum number of video frame periods per buffer swap for the window associated with the current context.
|
public static boolean wglSwapIntervalEXT(int interval)
GDI32.SwapBuffers(long) or wglSwapLayerBuffer is first called subsequent to the wglSwapIntervalEXT call.
A video frame period is the time required by the monitor to display a full frame of video data. In the case of an interlaced monitor, this is typically the time required to display both the even and odd fields of a frame of video data. An interval set to a value of 2 means that the color buffers will be swapped at most every other video frame.
If interval is set to a value of 0, buffer swaps are not synchronized to a video frame. The interval value is silently clamped to the
maximum implementation-dependent value supported before being stored.
The swap interval is not part of the render context state. It cannot be pushed or popped. The default swap interval is 1.
interval - the minimum number of video frames that are displayed before a buffer swap will occurpublic static int wglGetSwapIntervalEXT()
Copyright LWJGL. All Rights Reserved. License terms.