<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_Display::flip - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>CL_Display::flip</h1> <p> Flip back buffer to front, making changes visible on screen.</p> <pre> void flip( int interval = -1); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>interval</i></dt><dd>Specifies the minimum number of video frames that are displayed before a buffer swap will occur.</dd> </dl> <p><b>Detailed description:</b></p> <p>The parameter interval specifies the minimum number of video frames that are displayed before a buffer swap will occur.</p> <p>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.</p> <p>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.</p> <p>If interval is set to a value of -1 (the default), then it will use the buffer swap used for previous flip. If its the first flip, it will use the system default, which per default is 1.</p> <p><b>See also:</b></p> <p><a href="CL_Display.html">CL_Display</a></p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->