Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ glxswapintervalsgi(3G) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



glXSwapIntervalSGI(3G)      OpenGL Reference - GLX      glXSwapIntervalSGI(3G)



NAME
     glXSwapIntervalSGI - set a minimum time between buffer swaps


C SPECIFICATION
     int glXSwapIntervalSGI( int interval )


PARAMETERS
     interval  Specifies the minimum number of retraces between buffer swaps
               invoked by glXSwapBuffers.

DESCRIPTION
     glXSwapIntervalSGI is part of the SGIswapcontrol extension.

     glXSwapIntervalSGI causes frames to be displayed at a steady rate,
     provided the time required to draw each frame can be bounded.  It does
     this by specifying a minimum number of retraces between buffer swaps
     invoked by glXSwapBuffers.  For example, if the interval is 5, the color
     buffers will be swapped at most once every 5 retraces.  The new swap
     interval takes effect on the first execution of glXSwapBuffers after the
     execution of glXSwapIntervalSGI.

     glXSwapIntervalSGI affects only buffer swaps for the current GLX
     drawable.  (Use glXMakeCurrent to make a GLX context and GLX drawable
     current). Note that glXSwapBuffers may be called with a drawable
     parameter that is not the current GLX drawable; in this case
     glXSwapIntervalSGI has no effect on that buffer swap.

     glXSwapIntervalSGI returns an error code if it fails for any reason.
     Otherwise, zero is returned.

ERRORS
     GLXBADVALUE is returned if interval is less than or equal to zero.

     GLXBADCONTEXT is returned if there is no current GLX context.


SEE ALSO
     glXMakeCurrent, glXSwapBuffers.















                                                                        Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026