This extension allows an application to specify a minimum periodicity of color buffer swaps, measured in video frame periods.
Requires WGL_EXT_extensions_string.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | wglGetSwapIntervalEXT()
Returns the current swap interval for the window associated with the current context. |
| public static boolean | wglSwapIntervalEXT(int
the minimum number of video frames that are displayed before a buffer swap will occur interval)Specifies the minimum number of video frame periods per buffer swap for the window associated with the current context. |
| WGLEXTSwapControl | back to summary |
|---|---|
| protected WGLEXTSwapControl() | |
| wglGetSwapIntervalEXT | back to summary |
|---|---|
| public static int wglGetSwapIntervalEXT() Returns the current swap interval for the window associated with the current context. | |
| wglSwapIntervalEXT | back to summary |
|---|---|
| public static boolean wglSwapIntervalEXT(int interval) Specifies the minimum number of video frame periods per buffer swap for the window associated with the current context. The interval takes effect when
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 The swap interval is not part of the render context state. It cannot be pushed or popped. The default swap interval is 1.
| |