mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-06 09:56:26 +00:00
Added SDL_ShouldInit() and SDL_ShouldQuit()
These are handy functions to support thread-safe initialization and shutdown.
This commit is contained in:
@@ -817,6 +817,7 @@ SDL3_0.0.0 {
|
||||
SDL_SetHapticGain;
|
||||
SDL_SetHint;
|
||||
SDL_SetHintWithPriority;
|
||||
SDL_SetInitialized;
|
||||
SDL_SetJoystickEventsEnabled;
|
||||
SDL_SetJoystickLED;
|
||||
SDL_SetJoystickPlayerIndex;
|
||||
@@ -895,6 +896,8 @@ SDL3_0.0.0 {
|
||||
SDL_SetX11EventHook;
|
||||
SDL_SetiOSAnimationCallback;
|
||||
SDL_SetiOSEventPump;
|
||||
SDL_ShouldInit;
|
||||
SDL_ShouldQuit;
|
||||
SDL_ShowAndroidToast;
|
||||
SDL_ShowCursor;
|
||||
SDL_ShowMessageBox;
|
||||
|
@@ -842,6 +842,7 @@
|
||||
#define SDL_SetHapticGain SDL_SetHapticGain_REAL
|
||||
#define SDL_SetHint SDL_SetHint_REAL
|
||||
#define SDL_SetHintWithPriority SDL_SetHintWithPriority_REAL
|
||||
#define SDL_SetInitialized SDL_SetInitialized_REAL
|
||||
#define SDL_SetJoystickEventsEnabled SDL_SetJoystickEventsEnabled_REAL
|
||||
#define SDL_SetJoystickLED SDL_SetJoystickLED_REAL
|
||||
#define SDL_SetJoystickPlayerIndex SDL_SetJoystickPlayerIndex_REAL
|
||||
@@ -920,6 +921,8 @@
|
||||
#define SDL_SetX11EventHook SDL_SetX11EventHook_REAL
|
||||
#define SDL_SetiOSAnimationCallback SDL_SetiOSAnimationCallback_REAL
|
||||
#define SDL_SetiOSEventPump SDL_SetiOSEventPump_REAL
|
||||
#define SDL_ShouldInit SDL_ShouldInit_REAL
|
||||
#define SDL_ShouldQuit SDL_ShouldQuit_REAL
|
||||
#define SDL_ShowAndroidToast SDL_ShowAndroidToast_REAL
|
||||
#define SDL_ShowCursor SDL_ShowCursor_REAL
|
||||
#define SDL_ShowMessageBox SDL_ShowMessageBox_REAL
|
||||
|
@@ -852,6 +852,7 @@ SDL_DYNAPI_PROC(bool,SDL_SetHapticAutocenter,(SDL_Haptic *a, int b),(a,b),return
|
||||
SDL_DYNAPI_PROC(bool,SDL_SetHapticGain,(SDL_Haptic *a, int b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(bool,SDL_SetHint,(const char *a, const char *b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(bool,SDL_SetHintWithPriority,(const char *a, const char *b, SDL_HintPriority c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(void,SDL_SetInitialized,(SDL_InitState *a, bool b),(a,b),)
|
||||
SDL_DYNAPI_PROC(void,SDL_SetJoystickEventsEnabled,(bool a),(a),)
|
||||
SDL_DYNAPI_PROC(bool,SDL_SetJoystickLED,(SDL_Joystick *a, Uint8 b, Uint8 c, Uint8 d),(a,b,c,d),return)
|
||||
SDL_DYNAPI_PROC(bool,SDL_SetJoystickPlayerIndex,(SDL_Joystick *a, int b),(a,b),return)
|
||||
@@ -930,6 +931,8 @@ SDL_DYNAPI_PROC(void,SDL_SetWindowsMessageHook,(SDL_WindowsMessageHook a, void *
|
||||
SDL_DYNAPI_PROC(void,SDL_SetX11EventHook,(SDL_X11EventHook a, void *b),(a,b),)
|
||||
SDL_DYNAPI_PROC(bool,SDL_SetiOSAnimationCallback,(SDL_Window *a, int b, SDL_iOSAnimationCallback c, void *d),(a,b,c,d),return)
|
||||
SDL_DYNAPI_PROC(void,SDL_SetiOSEventPump,(bool a),(a),)
|
||||
SDL_DYNAPI_PROC(bool,SDL_ShouldInit,(SDL_InitState *a),(a),return)
|
||||
SDL_DYNAPI_PROC(bool,SDL_ShouldQuit,(SDL_InitState *a),(a),return)
|
||||
SDL_DYNAPI_PROC(bool,SDL_ShowAndroidToast,(const char *a, int b, int c, int d, int e),(a,b,c,d,e),return)
|
||||
SDL_DYNAPI_PROC(bool,SDL_ShowCursor,(void),(),return)
|
||||
SDL_DYNAPI_PROC(bool,SDL_ShowMessageBox,(const SDL_MessageBoxData *a, int *b),(a,b),return)
|
||||
|
Reference in New Issue
Block a user