|
SDL
2.0
|
Include dependency graph for SDL_main.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | SDL_MAIN_AVAILABLE |
| #define | SDLMAIN_DECLSPEC |
| #define | main SDL_main |
Typedefs | |
| typedef int(* | SDL_main_func) (int argc, char *argv[]) |
Functions | |
| SDLMAIN_DECLSPEC int | SDL_main (int argc, char *argv[]) |
| void | SDL_SetMainReady (void) |
| int | SDL_RegisterApp (char *name, Uint32 style, void *hInst) |
| void | SDL_UnregisterApp (void) |
Redefine main() on some platforms so that it is called by SDL.
The application's main() function must be called with C linkage, and should be declared like this:
Definition in file SDL_main.h.
| #define main SDL_main |
Definition at line 109 of file SDL_main.h.
| #define SDL_MAIN_AVAILABLE |
Definition at line 40 of file SDL_main.h.
| #define SDLMAIN_DECLSPEC |
Definition at line 90 of file SDL_main.h.
| typedef int(* SDL_main_func) (int argc, char *argv[]) |
The prototype for the application's main() function
Definition at line 120 of file SDL_main.h.
| SDLMAIN_DECLSPEC int SDL_main | ( | int | argc, |
| char * | argv[] | ||
| ) |
| int SDL_RegisterApp | ( | char * | name, |
| Uint32 | style, | ||
| void * | hInst | ||
| ) |
This can be called to set the application class at startup
| void SDL_SetMainReady | ( | void | ) |
Circumvent failure of SDL_Init() when not using SDL_main() as an entry point.
This function is defined in SDL_main.h, along with the preprocessor rule to redefine main() as SDL_main(). Thus to ensure that your main() function will not be changed it is necessary to define SDL_MAIN_HANDLED before including SDL.h.
| void SDL_UnregisterApp | ( | void | ) |