back  Return to list

homeprevnext Name
homeprevnext Name Strings
homeprevnext Version
    Date: 1/27/1999   Revision: 1.3  
homeprevnext Number
homeprevnext Dependencies
    WGL_EXT_extensions_string is required.  
homeprevnext Overview
    This extension allows an application to specify a minimum periodicity  
    of color buffer swaps, measured in video frame periods.  
homeprevnext New Procedures and Functions
    BOOL wglSwapIntervalEXT(int interval)  
    int wglGetSwapIntervalEXT(void)  
homeprevnext New Tokens
homeprevnext Additions to Chapter 2 of the 1.2 GL Specification (OpenGL Operation)
homeprevnext Additions to Chapter 3 of the 1.2 GL Specification (Rasterization)
homeprevnext Additions to Chapter 4 of the 1.2 GL Specification (Per-Fragment Operations and the Framebuffer)
homeprevnext Additions to Chapter 5 of the 1.2 GL Specification (Special Functions)
homeprevnext Additions to Chapter 6 of the 1.2 GL Specification (State and State Requests)
homeprevnext 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  
    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  
    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.  
homeprevnext Errors
    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.  
homeprevnext New State
homeprevnext New Implementation Dependent State
Valid XHTML 1.1! Valid CSS! Last update: November 14, 2006.
Cette page doit être lue avec un navigateur récent respectant le standard XHTML 1.1.