EXT_swap_control
WGL_EXT_swap_control
Date: 1/27/1999 Revision: 1.3
172
WGL_EXT_extensions_string is required.
This extension allows an application to specify a minimum periodicity
of color buffer swaps, measured in video frame periods.
  New Procedures and Functions |
BOOL wglSwapIntervalEXT(int interval)
int wglGetSwapIntervalEXT(void)
None
  Additions to Chapter 2 of the 1.2 GL Specification (OpenGL Operation) |
None
  Additions to Chapter 3 of the 1.2 GL Specification (Rasterization) |
None
  Additions to Chapter 4 of the 1.2 GL Specification (Per-Fragment Operations and the Framebuffer) |
None
  Additions to Chapter 5 of the 1.2 GL Specification (Special Functions) |
None
  Additions to Chapter 6 of the 1.2 GL Specification (State and State Requests) |
None
  Additions to the WGL Specification |
wglSwapIntervalEXT specifies the minimum number of video frame periods
per buffer swap for the window associated with the current context.
The interval takes effect when SwapBuffers or wglSwapLayerBuffer
is first called subsequent to the wglSwapIntervalEXT call.
The parameter 'interval' specifies the minimum number of video frames
that are displayed before a buffer swap will occur.
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 synchron-
ized 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 current swap interval for the window
associated with the current context can be obtained by calling
wglGetSwapIntervalEXT. The default swap interval is 1.
Because there is no way to extend wgl, this call is defined in the ICD
and can be called by obtaining the address with wglGetProcAddress.
Because this is not a GL extension, it is not included in the
GL_EXTENSIONS string.
If the function succeeds, the return value is TRUE. If the function
fails, the return value is FALSE. To get extended error information,
call GetLastError.
ERROR_INVALID_DATA The 'interval' parameter is negative.
None
  New Implementation Dependent State |
None
None
| | Last update: November 14, 2006. Cette page doit être lue avec un navigateur récent respectant le standard XHTML 1.1. |