Sync SDL3 wiki -> header

main
SDL Wiki Bot 2024-04-13 18:59:10 +00:00
parent cae90ef489
commit 9c5ae7293f
1 changed files with 4 additions and 5 deletions

View File

@ -165,6 +165,8 @@ extern DECLSPEC int SDLCALL SDL_LinuxSetThreadPriorityAndPolicy(Sint64 threadID,
#ifdef SDL_PLATFORM_IOS #ifdef SDL_PLATFORM_IOS
/** /**
* Use this function to set the animation callback on Apple iOS.
*
* The function prototype for `callback` is: * The function prototype for `callback` is:
* *
* ```c * ```c
@ -172,16 +174,13 @@ extern DECLSPEC int SDLCALL SDL_LinuxSetThreadPriorityAndPolicy(Sint64 threadID,
* ``` * ```
* *
* Where its parameter, `callbackParam`, is what was passed as `callbackParam` * Where its parameter, `callbackParam`, is what was passed as `callbackParam`
* to SDL_iPhoneSetAnimationCallback(). * to SDL_iOSSetAnimationCallback().
* *
* This function is only available on Apple iOS. * This function is only available on Apple iOS.
* *
* For more information see: * For more information see:
* https://github.com/libsdl-org/SDL/blob/main/docs/README-ios.md * https://github.com/libsdl-org/SDL/blob/main/docs/README-ios.md
* *
* This functions is also accessible using the macro
* SDL_iOSSetAnimationCallback() since SDL 2.0.4.
*
* \param window the window for which the animation callback should be set * \param window the window for which the animation callback should be set
* \param interval the number of frames after which **callback** will be * \param interval the number of frames after which **callback** will be
* called * called
@ -192,7 +191,7 @@ extern DECLSPEC int SDLCALL SDL_LinuxSetThreadPriorityAndPolicy(Sint64 threadID,
* *
* \since This function is available since SDL 3.0.0. * \since This function is available since SDL 3.0.0.
* *
* \sa SDL_iPhoneSetEventPump * \sa SDL_iOSSetEventPump
*/ */
extern DECLSPEC int SDLCALL SDL_iOSSetAnimationCallback(SDL_Window * window, int interval, void (SDLCALL *callback)(void*), void *callbackParam); extern DECLSPEC int SDLCALL SDL_iOSSetAnimationCallback(SDL_Window * window, int interval, void (SDLCALL *callback)(void*), void *callbackParam);