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)
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);
396extern DECLSPEC
int SDLCALL SDL_AndroidGetExternalStorageState(
Uint32 *state);
414extern DECLSPEC
const char * SDLCALL SDL_AndroidGetExternalStoragePath(
void);
426extern DECLSPEC
SDL_bool SDLCALL SDL_AndroidRequestPermission(
const char *permission);
452extern DECLSPEC
int SDLCALL SDL_AndroidShowToast(
const char*
message,
int duration,
int gravity,
int xoffset,
int yoffset);
466extern DECLSPEC
int SDLCALL SDL_AndroidSendMessage(
Uint32 command,
int param);
480 SDL_WINRT_PATH_INSTALLED_LOCATION,
483 SDL_WINRT_PATH_LOCAL_FOLDER,
489 SDL_WINRT_PATH_ROAMING_FOLDER,
493 SDL_WINRT_PATH_TEMP_FOLDER
503 SDL_WINRT_DEVICEFAMILY_UNKNOWN,
506 SDL_WINRT_DEVICEFAMILY_DESKTOP,
509 SDL_WINRT_DEVICEFAMILY_MOBILE,
512 SDL_WINRT_DEVICEFAMILY_XBOX,
513} SDL_WinRT_DeviceFamily;
537extern DECLSPEC
const wchar_t * SDLCALL SDL_WinRTGetFSPathUNICODE(SDL_WinRT_Path pathType);
560extern DECLSPEC
const char * SDLCALL SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path pathType);
569extern DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily();
620extern DECLSPEC
void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(
void);
625typedef struct XTaskQueueObject * XTaskQueueHandle;
641extern DECLSPEC
int SDLCALL SDL_GDKGetTaskQueue(XTaskQueueHandle * outTaskQueue);
typedef void(APIENTRYP PFNGLDRAWRANGEELEMENTSPROC)(GLenum mode
GLint GLint GLint yoffset
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLuint GLsizei const GLchar * message
struct SDL_Renderer SDL_Renderer
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)
struct SDL_Window SDL_Window
The type used to identify a window.