mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Added notes on main callbacks with other language bindings
This commit is contained in:
parent
aae2f74ae6
commit
d83fa92d58
1 changed files with 7 additions and 0 deletions
|
|
@ -205,6 +205,13 @@ data, as this pointer will not be provided to your app again.
|
|||
The SDL_AppResult value that terminated the app is provided here, in case
|
||||
it's useful to know if this was a successful or failing run of the app.
|
||||
|
||||
## Implementing main callbacks for other languages
|
||||
|
||||
If you're writing language bindings for SDL and want to provide the main
|
||||
callback functionality, you should call SDL_EnterAppMainCallbacks() and pass it
|
||||
the arguments and callback functions that you want called during the program
|
||||
execution. This function will call the init, event, and iterate functions and
|
||||
then once the application is done, will call the quit callback and return.
|
||||
|
||||
## Summary and Best Practices
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue