home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !SDL / man / SDL_InitSubSystem.3 < prev    next >
Encoding:
Text File  |  2006-09-20  |  1.9 KB  |  68 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_InitSubSystem"("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_InitSubSystem- Initialize subsystems 
  13. <h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
  14. <p>
  15. <b>#include "SDL.h" <p>
  16. </b><b>int
  17. <b>SDL_InitSubSystem</b></b>(<b>Uint32 flags</b>); 
  18. <h2><a name='sect2' href='#toc2'>Description</a></h2>
  19. <p>
  20. After SDL has been initialized
  21. with <i><b>SDL_Init</b></i> you may initialize uninitialized subsystems with <b>SDL_InitSubSystem</b>.
  22. The <b>flags</b> parameter is the same as that used in <i><b>SDL_Init</b></i>. 
  23. <h2><a name='sect3' href='#toc3'>Examples</a></h2>
  24. <p>
  25. <br>
  26. <pre>CW/* Seperating Joystick and Video initialization. */
  27. SDL_Init(SDL_INIT_VIDEO);
  28. .
  29. .
  30. SDL_SetVideoMode(640, 480, 16, SDL_DOUBLEBUF|SDL_FULLSCREEN);
  31. .
  32. /* Do Some Video stuff */
  33. .
  34. .
  35. /* Initialize the joystick subsystem */
  36. SDL_InitSubSystem(SDL_INIT_JOYSTICK);
  37. /* Do some stuff with video and joystick */
  38. .
  39. .
  40. .
  41. /* Shut them both down */
  42. SDL_Quit();
  43. </pre><p>
  44.  
  45. <h2><a name='sect4' href='#toc4'>Return Value</a></h2>
  46. <p>
  47. Returns <b>-1</b> on an error or <b>0</b> on success. 
  48. <h2><a name='sect5' href='#toc5'>See Also</a></h2>
  49. <p>
  50. <i><b>SDL_Init</b></i>, <i><b>SDL_Quit</b></i>,
  51. <i><b>SDL_QuitSubSystem</b></i> 
  52. <!--
  53.   
  54.  <p>
  55.  
  56. <hr><p>
  57. <a name='toc'><b>Table of Contents</b></a><p>
  58. <ul>
  59. <li><a name='toc0' href='#sect0'>Name</a></li>
  60. <li><a name='toc1' href='#sect1'>Synopsis</a></li>
  61. <li><a name='toc2' href='#sect2'>Description</a></li>
  62. <li><a name='toc3' href='#sect3'>Examples</a></li>
  63. <li><a name='toc4' href='#sect4'>Return Value</a></li>
  64. <li><a name='toc5' href='#sect5'>See Also</a></li>
  65. </ul>
  66. </body>
  67. </html>
  68.