56 /** @name SDL_INIT Flags |
56 /** @name SDL_INIT Flags |
57 * These are the flags which may be passed to SDL_Init() -- you should |
57 * These are the flags which may be passed to SDL_Init() -- you should |
58 * specify the subsystems which you will be using in your application. |
58 * specify the subsystems which you will be using in your application. |
59 */ |
59 */ |
60 /*@{*/ |
60 /*@{*/ |
61 #define SDL_INIT_TIMER 0x00000001 |
61 #define SDL_INIT_TIMER 0x00000001 |
62 #define SDL_INIT_AUDIO 0x00000010 |
62 #define SDL_INIT_AUDIO 0x00000010 |
63 #define SDL_INIT_VIDEO 0x00000020 |
63 #define SDL_INIT_VIDEO 0x00000020 |
64 #define SDL_INIT_CDROM 0x00000100 |
64 #define SDL_INIT_CDROM 0x00000100 |
65 #define SDL_INIT_JOYSTICK 0x00000200 |
65 #define SDL_INIT_JOYSTICK 0x00000200 |
66 #define SDL_INIT_NOPARACHUTE 0x00100000 /**< Don't catch fatal signals */ |
66 #define SDL_INIT_NOPARACHUTE 0x00100000 /**< Don't catch fatal signals */ |
67 #define SDL_INIT_EVENTTHREAD 0x01000000 /**< Not supported on all OS's */ |
67 #define SDL_INIT_EVENTTHREAD 0x01000000 /**< Not supported on all OS's */ |
68 #define SDL_INIT_EVERYTHING 0x0000FFFF |
68 #define SDL_INIT_EVERYTHING 0x0000FFFF |
69 /*@}*/ |
69 /*@}*/ |
70 |
70 |
71 /** This function loads the SDL dynamically linked library and initializes |
71 /** This function loads the SDL dynamically linked library and initializes |
72 * the subsystems specified by 'flags' (and those satisfying dependencies) |
72 * the subsystems specified by 'flags' (and those satisfying dependencies) |
73 * Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup |
73 * Unless the SDL_INIT_NOPARACHUTE flag is set, it will install cleanup |
74 * signal handlers for some commonly ignored fatal signals (like SIGSEGV) |
74 * signal handlers for some commonly ignored fatal signals (like SIGSEGV) |
75 */ |
75 */ |
76 extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags); |
76 extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags); |