ios: Move animation callback to its own typedef.

This commit is contained in:
Ryan C. Gordon committed 2024-06-12 15:10:16 -04:00
1 parent 5b0f14a936
commit 5416bd5fdc
6 files changed
+27 -6

No files matched your search

+1 -1
View File
@@ -225,7 +225,7 @@ Game Center
Game Center integration might require that you break up your main loop in order to yield control back to the system. In other words, instead of running an endless main loop, you run each frame in a callback function, using:
int SDL_iOSSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
int SDL_iOSSetAnimationCallback(SDL_Window * window, int interval, SDL_iOSAnimationCallback callback, void *callbackParam);
This will set up the given function to be called back on the animation callback, and then you have to return from main() to let the Cocoa event loop run.