mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-15 00:03:16 +00:00
Renamed SDL life cycle functions
This maps better to how SDL delivers the events, and the iOS delegate methods are in the documentation for reference.
This commit is contained in:
@@ -618,6 +618,8 @@
|
||||
#define SDL_GDKGetTaskQueue SDL_GetGDKTaskQueue
|
||||
#define SDL_LinuxSetThreadPriority SDL_SetLinuxThreadPriority
|
||||
#define SDL_LinuxSetThreadPriorityAndPolicy SDL_SetLinuxThreadPriorityAndPolicy
|
||||
#define SDL_OnApplicationDidBecomeActive SDL_OnApplicationDidEnterForeground
|
||||
#define SDL_OnApplicationWillResignActive SDL_OnApplicationWillEnterBackground
|
||||
#define SDL_WinRTGetDeviceFamily SDL_GetWinRTDeviceFamily
|
||||
#define SDL_GetWinRTFSPathUTF8 SDL_GetWinRTFSPath
|
||||
#define SDL_iOSSetAnimationCallback SDL_SetiOSAnimationCallback
|
||||
@@ -1237,6 +1239,8 @@
|
||||
#define SDL_GDKGetTaskQueue SDL_GDKGetTaskQueue_renamed_SDL_GetGDKTaskQueue
|
||||
#define SDL_LinuxSetThreadPriority SDL_LinuxSetThreadPriority_renamed_SDL_SetLinuxThreadPriority
|
||||
#define SDL_LinuxSetThreadPriorityAndPolicy SDL_LinuxSetThreadPriorityAndPolicy_renamed_SDL_SetLinuxThreadPriorityAndPolicy
|
||||
#define SDL_OnApplicationDidBecomeActive SDL_OnApplicationDidBecomeActive_renamed_SDL_OnApplicationDidEnterForeground
|
||||
#define SDL_OnApplicationWillResignActive SDL_OnApplicationWillResignActive_renamed_SDL_OnApplicationWillEnterBackground
|
||||
#define SDL_WinRTGetDeviceFamily SDL_WinRTGetDeviceFamily_renamed_SDL_GetWinRTDeviceFamily
|
||||
#define SDL_GetWinRTFSPathUTF8 SDL_GetWinRTFSPathUTF8_renamed_SDL_GetWinRTFSPath
|
||||
#define SDL_iOSSetAnimationCallback SDL_iOSSetAnimationCallback_renamed_SDL_SetiOSAnimationCallback
|
||||
|
||||
@@ -716,7 +716,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_OnApplicationDidReceiveMemoryWarning(void);
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern SDL_DECLSPEC void SDLCALL SDL_OnApplicationWillResignActive(void);
|
||||
extern SDL_DECLSPEC void SDLCALL SDL_OnApplicationWillEnterBackground(void);
|
||||
|
||||
/**
|
||||
* Let iOS apps with external event handling report
|
||||
@@ -767,7 +767,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_OnApplicationWillEnterForeground(void);
|
||||
*
|
||||
* \since This function is available since SDL 3.0.0.
|
||||
*/
|
||||
extern SDL_DECLSPEC void SDLCALL SDL_OnApplicationDidBecomeActive(void);
|
||||
extern SDL_DECLSPEC void SDLCALL SDL_OnApplicationDidEnterForeground(void);
|
||||
|
||||
#ifdef SDL_PLATFORM_IOS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user