home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !SDL / man / SDL_Flip.3 < prev    next >
Encoding:
Text File  |  2006-09-20  |  1.7 KB  |  51 lines

  1. <!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
  2. <!-- available at http://polyglotman.sourceforge.net/ -->
  3.  
  4. <html>
  5. <head>
  6. <title>"SDL_Flip"("3") manual page</title>
  7. </head>
  8. <body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
  9. <a href='#toc'>Table of Contents</a><p>
  10.  
  11. <h2><a name='sect0' href='#toc0'>Name</a></h2>
  12. SDL_Flip- Swaps screen buffers 
  13. <h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
  14. <p>
  15. <b>#include "SDL.h" <p>
  16. </b><b>int <b>SDL_Flip</b></b>(<b>SDL_Surface
  17. *screen</b>); 
  18. <h2><a name='sect2' href='#toc2'>Description</a></h2>
  19. <p>
  20. On hardware that supports double-buffering, this function
  21. sets up a flip and returns. The hardware will wait for vertical retrace,
  22. and then swap video buffers before the next video surface blit or lock
  23. will return. On hardware that doesn't support double-buffering, this is equivalent
  24. to calling <i>SDL_UpdateRect</i><b>(screen, 0, 0, 0, 0)</b> <p>
  25. The <b>SDL_DOUBLEBUF</b> flag must
  26. have been passed to <i>SDL_SetVideoMode</i>, when setting the video mode for this
  27. function to perform hardware flipping. 
  28. <h2><a name='sect3' href='#toc3'>Return Value</a></h2>
  29. <p>
  30. This function returns
  31. <b>0</b> if successful, or <b>-1</b> if there was an error. 
  32. <h2><a name='sect4' href='#toc4'>See Also</a></h2>
  33. <p>
  34. <i><b>SDL_SetVideoMode</b></i>, <i><b>SDL_UpdateRect</b></i>,
  35. <i><b>SDL_Surface</b></i> 
  36. <!--
  37.   
  38.  <p>
  39.  
  40. <hr><p>
  41. <a name='toc'><b>Table of Contents</b></a><p>
  42. <ul>
  43. <li><a name='toc0' href='#sect0'>Name</a></li>
  44. <li><a name='toc1' href='#sect1'>Synopsis</a></li>
  45. <li><a name='toc2' href='#sect2'>Description</a></li>
  46. <li><a name='toc3' href='#sect3'>Return Value</a></li>
  47. <li><a name='toc4' href='#sect4'>See Also</a></li>
  48. </ul>
  49. </body>
  50. </html>
  51.