mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 17:28:28 +00:00
Sync wiki -> headers.
This commit is contained in:
parent
01cba48d18
commit
197340ea1c
18 changed files with 291 additions and 273 deletions
|
@ -173,22 +173,24 @@ extern DECLSPEC void SDLCALL SDL_SetMainReady(void);
|
|||
|
||||
/**
|
||||
* Initializes and launches an SDL application, by doing platform-specific
|
||||
* initialization before calling your mainFunction and cleanups after it returns,
|
||||
* if that is needed for a specific platform, otherwise it just calls mainFunction.
|
||||
* You can use this if you want to use your own main() implementation
|
||||
* without using SDL_main (like when using SDL_MAIN_HANDLED).
|
||||
* When using this, you do *not* need SDL_SetMainReady().
|
||||
* initialization before calling your mainFunction and cleanups after it
|
||||
* returns, if that is needed for a specific platform, otherwise it just calls
|
||||
* mainFunction.
|
||||
*
|
||||
* \param argc The argc parameter from the application's main() function,
|
||||
* or 0 if the platform's main-equivalent has no argc
|
||||
* \param argv The argv parameter from the application's main() function,
|
||||
* or NULL if the platform's main-equivalent has no argv
|
||||
* \param mainFunction Your SDL app's C-style main(), an SDL_main_func.
|
||||
* NOT the function you're calling this from!
|
||||
* Its name doesn't matter, but its signature must be
|
||||
* like int my_main(int argc, char* argv[])
|
||||
* \param reserved should be NULL (reserved for future use, will probably
|
||||
* be platform-specific then)
|
||||
* You can use this if you want to use your own main() implementation without
|
||||
* using SDL_main (like when using SDL_MAIN_HANDLED). When using this, you do
|
||||
* *not* need SDL_SetMainReady().
|
||||
*
|
||||
* \param argc The argc parameter from the application's main() function, or 0
|
||||
* if the platform's main-equivalent has no argc
|
||||
* \param argv The argv parameter from the application's main() function, or
|
||||
* NULL if the platform's main-equivalent has no argv
|
||||
* \param mainFunction Your SDL app's C-style main(), an SDL_main_func. NOT
|
||||
* the function you're calling this from! Its name doesn't
|
||||
* matter, but its signature must be like int my_main(int
|
||||
* argc, char* argv[])
|
||||
* \param reserved should be NULL (reserved for future use, will probably be
|
||||
* platform-specific then)
|
||||
* \return the return value from mainFunction: 0 on success, -1 on failure;
|
||||
* SDL_GetError() might have more information on the failure
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue