44#if defined(__WIN32__) || defined(__GDK__)
46typedef void (SDLCALL * SDL_WindowsMessageHook)(
void *userdata,
void *hWnd,
unsigned int message,
Uint64 wParam,
Sint64 lParam);
56extern DECLSPEC
void SDLCALL SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback,
void *userdata);
60#if defined(__WIN32__) || defined(__WINGDK__)
74extern DECLSPEC
int SDLCALL SDL_Direct3D9GetAdapterIndex(
SDL_DisplayID displayID);
76typedef struct IDirect3DDevice9 IDirect3DDevice9;
90extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_GetRenderD3D9Device(
SDL_Renderer * renderer);
92typedef struct ID3D11Device ID3D11Device;
106extern DECLSPEC ID3D11Device* SDLCALL SDL_GetRenderD3D11Device(
SDL_Renderer * renderer);
110#if defined(__WIN32__) || defined(__GDK__)
112typedef struct ID3D12Device ID3D12Device;
126extern DECLSPEC ID3D12Device* SDLCALL SDL_RenderGetD3D12Device(
SDL_Renderer* renderer);
130#if defined(__WIN32__) || defined(__WINGDK__)
147extern DECLSPEC
SDL_bool SDLCALL SDL_DXGIGetOutputInfo(
SDL_DisplayID displayID,
int *adapterIndex,
int *outputIndex);
165extern DECLSPEC
int SDLCALL SDL_LinuxSetThreadPriority(
Sint64 threadID,
int priority);
181extern DECLSPEC
int SDLCALL SDL_LinuxSetThreadPriorityAndPolicy(
Sint64 threadID,
int sdlPriority,
int schedPolicy);
188#define SDL_iOSSetAnimationCallback(window, interval, callback, callbackParam) SDL_iPhoneSetAnimationCallback(window, interval, callback, callbackParam)
222extern DECLSPEC
int SDLCALL SDL_iPhoneSetAnimationCallback(
SDL_Window * window,
int interval,
void (SDLCALL *callback)(
void*),
void *callbackParam);
224#define SDL_iOSSetEventPump(enabled) SDL_iPhoneSetEventPump(enabled)
240extern DECLSPEC
void SDLCALL SDL_iPhoneSetEventPump(
SDL_bool enabled);
265extern DECLSPEC
void * SDLCALL SDL_AndroidGetJNIEnv(
void);
287extern DECLSPEC
void * SDLCALL SDL_AndroidGetActivity(
void);
319extern DECLSPEC
int SDLCALL SDL_GetAndroidSDKVersion(
void);
328extern DECLSPEC
SDL_bool SDLCALL SDL_IsAndroidTV(
void);
337extern DECLSPEC
SDL_bool SDLCALL SDL_IsChromebook(
void);
346extern DECLSPEC
SDL_bool SDLCALL SDL_IsDeXMode(
void);
353extern DECLSPEC
void SDLCALL SDL_AndroidBackButton(
void);
359#define SDL_ANDROID_EXTERNAL_STORAGE_READ 0x01
360#define SDL_ANDROID_EXTERNAL_STORAGE_WRITE 0x02
378extern DECLSPEC
const char * SDLCALL SDL_AndroidGetInternalStoragePath(
void);
397extern DECLSPEC
int SDLCALL SDL_AndroidGetExternalStorageState(
Uint32 *state);
415extern DECLSPEC
const char * SDLCALL SDL_AndroidGetExternalStoragePath(
void);
427extern DECLSPEC
SDL_bool SDLCALL SDL_AndroidRequestPermission(
const char *permission);
453extern DECLSPEC
int SDLCALL SDL_AndroidShowToast(
const char* message,
int duration,
int gravity,
int xoffset,
int yoffset);
467extern DECLSPEC
int SDLCALL SDL_AndroidSendMessage(
Uint32 command,
int param);
481 SDL_WINRT_PATH_INSTALLED_LOCATION,
484 SDL_WINRT_PATH_LOCAL_FOLDER,
490 SDL_WINRT_PATH_ROAMING_FOLDER,
494 SDL_WINRT_PATH_TEMP_FOLDER
504 SDL_WINRT_DEVICEFAMILY_UNKNOWN,
507 SDL_WINRT_DEVICEFAMILY_DESKTOP,
510 SDL_WINRT_DEVICEFAMILY_MOBILE,
513 SDL_WINRT_DEVICEFAMILY_XBOX,
514} SDL_WinRT_DeviceFamily;
538extern DECLSPEC
const wchar_t * SDLCALL SDL_WinRTGetFSPathUNICODE(SDL_WinRT_Path pathType);
561extern DECLSPEC
const char * SDLCALL SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path pathType);
570extern DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily();
621extern DECLSPEC
void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(
void);
626typedef struct XTaskQueueObject * XTaskQueueHandle;
642extern DECLSPEC
int SDLCALL SDL_GDKGetTaskQueue(XTaskQueueHandle * outTaskQueue);
Include file for SDL keyboard event handling.
Header file for SDL 2D rendering functions.
struct SDL_Renderer SDL_Renderer
This is a general header that includes C language support.
SDL_bool SDL_IsTablet(void)
void SDL_OnApplicationWillEnterForeground(void)
void SDL_OnApplicationDidBecomeActive(void)
void SDL_OnApplicationDidEnterBackground(void)
void SDL_OnApplicationDidReceiveMemoryWarning(void)
void SDL_OnApplicationWillResignActive(void)
void SDL_OnApplicationWillTerminate(void)
Header file for SDL video functions.
struct SDL_Window SDL_Window
The type used to identify a window.