SDL 3.0
SDL_system.h
Go to the documentation of this file.
1/*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20*/
21
22/**
23 * \file SDL_system.h
24 *
25 * Include file for platform specific SDL API functions
26 */
27
28#ifndef SDL_system_h_
29#define SDL_system_h_
30
31#include <SDL3/SDL_stdinc.h>
32#include <SDL3/SDL_keyboard.h>
33#include <SDL3/SDL_render.h>
34#include <SDL3/SDL_video.h>
35
36#include <SDL3/SDL_begin_code.h>
37/* Set up for C function definitions, even when using C++ */
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42
43/* Platform specific functions for Windows */
44#if defined(__WIN32__) || defined(__GDK__)
45
46typedef void (SDLCALL * SDL_WindowsMessageHook)(void *userdata, void *hWnd, unsigned int message, Uint64 wParam, Sint64 lParam);
47
48/**
49 * Set a callback for every Windows message, run before TranslateMessage().
50 *
51 * \param callback The SDL_WindowsMessageHook function to call.
52 * \param userdata a pointer to pass to every iteration of `callback`
53 *
54 * \since This function is available since SDL 3.0.0.
55 */
56extern DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata);
57
58#endif /* defined(__WIN32__) || defined(__GDK__) */
59
60#if defined(__WIN32__) || defined(__WINGDK__)
61
62/**
63 * Get the D3D9 adapter index that matches the specified display.
64 *
65 * The returned adapter index can be passed to `IDirect3D9::CreateDevice` and
66 * controls on which monitor a full screen application will appear.
67 *
68 * \param displayID the instance of the display to query
69 * \returns the D3D9 adapter index on success or a negative error code on
70 * failure; call SDL_GetError() for more information.
71 *
72 * \since This function is available since SDL 3.0.0.
73 */
74extern DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID);
75
76typedef struct IDirect3DDevice9 IDirect3DDevice9;
77
78/**
79 * Get the D3D9 device associated with a renderer.
80 *
81 * Once you are done using the device, you should release it to avoid a
82 * resource leak.
83 *
84 * \param renderer the renderer from which to get the associated D3D device
85 * \returns the D3D9 device associated with given renderer or NULL if it is
86 * not a D3D9 renderer; call SDL_GetError() for more information.
87 *
88 * \since This function is available since SDL 3.0.0.
89 */
90extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_GetRenderD3D9Device(SDL_Renderer * renderer);
91
92typedef struct ID3D11Device ID3D11Device;
93
94/**
95 * Get the D3D11 device associated with a renderer.
96 *
97 * Once you are done using the device, you should release it to avoid a
98 * resource leak.
99 *
100 * \param renderer the renderer from which to get the associated D3D11 device
101 * \returns the D3D11 device associated with given renderer or NULL if it is
102 * not a D3D11 renderer; call SDL_GetError() for more information.
103 *
104 * \since This function is available since SDL 3.0.0.
105 */
106extern DECLSPEC ID3D11Device* SDLCALL SDL_GetRenderD3D11Device(SDL_Renderer * renderer);
107
108#endif /* defined(__WIN32__) || defined(__WINGDK__) */
109
110#if defined(__WIN32__) || defined(__GDK__)
111
112typedef struct ID3D12Device ID3D12Device;
113
114/**
115 * Get the D3D12 device associated with a renderer.
116 *
117 * Once you are done using the device, you should release it to avoid a
118 * resource leak.
119 *
120 * \param renderer the renderer from which to get the associated D3D12 device
121 * \returns the D3D12 device associated with given renderer or NULL if it is
122 * not a D3D12 renderer; call SDL_GetError() for more information.
123 *
124 * \since This function is available since SDL 3.0.0.
125 */
126extern DECLSPEC ID3D12Device* SDLCALL SDL_RenderGetD3D12Device(SDL_Renderer* renderer);
127
128#endif /* defined(__WIN32__) || defined(__GDK__) */
129
130#if defined(__WIN32__) || defined(__WINGDK__)
131
132/**
133 * Get the DXGI Adapter and Output indices for the specified display.
134 *
135 * The DXGI Adapter and Output indices can be passed to `EnumAdapters` and
136 * `EnumOutputs` respectively to get the objects required to create a DX10 or
137 * DX11 device and swap chain.
138 *
139 * \param displayID the instance of the display to query
140 * \param adapterIndex a pointer to be filled in with the adapter index
141 * \param outputIndex a pointer to be filled in with the output index
142 * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
143 * for more information.
144 *
145 * \since This function is available since SDL 3.0.0.
146 */
147extern DECLSPEC SDL_bool SDLCALL SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex);
148
149#endif /* defined(__WIN32__) || defined(__WINGDK__) */
150
151/* Platform specific functions for Linux */
152#ifdef __LINUX__
153
154/**
155 * Sets the UNIX nice value for a thread.
156 *
157 * This uses setpriority() if possible, and RealtimeKit if available.
158 *
159 * \param threadID the Unix thread ID to change priority of.
160 * \param priority The new, Unix-specific, priority value.
161 * \returns 0 on success, or -1 on error.
162 *
163 * \since This function is available since SDL 3.0.0.
164 */
165extern DECLSPEC int SDLCALL SDL_LinuxSetThreadPriority(Sint64 threadID, int priority);
166
167/**
168 * Sets the priority (not nice level) and scheduling policy for a thread.
169 *
170 * This uses setpriority() if possible, and RealtimeKit if available.
171 *
172 * \param threadID The Unix thread ID to change priority of.
173 * \param sdlPriority The new SDL_ThreadPriority value.
174 * \param schedPolicy The new scheduling policy (SCHED_FIFO, SCHED_RR,
175 * SCHED_OTHER, etc...)
176 * \returns 0 on success or a negative error code on failure; call
177 * SDL_GetError() for more information.
178 *
179 * \since This function is available since SDL 3.0.0.
180 */
181extern DECLSPEC int SDLCALL SDL_LinuxSetThreadPriorityAndPolicy(Sint64 threadID, int sdlPriority, int schedPolicy);
182
183#endif /* __LINUX__ */
184
185/* Platform specific functions for iOS */
186#ifdef __IOS__
187
188#define SDL_iOSSetAnimationCallback(window, interval, callback, callbackParam) SDL_iPhoneSetAnimationCallback(window, interval, callback, callbackParam)
189
190/**
191 * Use this function to set the animation callback on Apple iOS.
192 *
193 * The function prototype for `callback` is:
194 *
195 * ```c
196 * void callback(void* callbackParam);
197 * ```
198 *
199 * Where its parameter, `callbackParam`, is what was passed as `callbackParam`
200 * to SDL_iPhoneSetAnimationCallback().
201 *
202 * This function is only available on Apple iOS.
203 *
204 * For more information see:
205 * https://github.com/libsdl-org/SDL/blob/main/docs/README-ios.md
206 *
207 * This functions is also accessible using the macro
208 * SDL_iOSSetAnimationCallback() since SDL 2.0.4.
209 *
210 * \param window the window for which the animation callback should be set
211 * \param interval the number of frames after which **callback** will be
212 * called
213 * \param callback the function to call for every frame.
214 * \param callbackParam a pointer that is passed to `callback`.
215 * \returns 0 on success or a negative error code on failure; call
216 * SDL_GetError() for more information.
217 *
218 * \since This function is available since SDL 3.0.0.
219 *
220 * \sa SDL_iPhoneSetEventPump
221 */
222extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (SDLCALL *callback)(void*), void *callbackParam);
223
224#define SDL_iOSSetEventPump(enabled) SDL_iPhoneSetEventPump(enabled)
225
226/**
227 * Use this function to enable or disable the SDL event pump on Apple iOS.
228 *
229 * This function is only available on Apple iOS.
230 *
231 * This functions is also accessible using the macro SDL_iOSSetEventPump()
232 * since SDL 2.0.4.
233 *
234 * \param enabled SDL_TRUE to enable the event pump, SDL_FALSE to disable it
235 *
236 * \since This function is available since SDL 3.0.0.
237 *
238 * \sa SDL_iPhoneSetAnimationCallback
239 */
240extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
241
242#endif /* __IOS__ */
243
244
245/* Platform specific functions for Android */
246#ifdef __ANDROID__
247
248/**
249 * Get the Android Java Native Interface Environment of the current thread.
250 *
251 * This is the JNIEnv one needs to access the Java virtual machine from native
252 * code, and is needed for many Android APIs to be usable from C.
253 *
254 * The prototype of the function in SDL's code actually declare a void* return
255 * type, even if the implementation returns a pointer to a JNIEnv. The
256 * rationale being that the SDL headers can avoid including jni.h.
257 *
258 * \returns a pointer to Java native interface object (JNIEnv) to which the
259 * current thread is attached, or 0 on error.
260 *
261 * \since This function is available since SDL 3.0.0.
262 *
263 * \sa SDL_AndroidGetActivity
264 */
265extern DECLSPEC void * SDLCALL SDL_AndroidGetJNIEnv(void);
266
267/**
268 * Retrieve the Java instance of the Android activity class.
269 *
270 * The prototype of the function in SDL's code actually declares a void*
271 * return type, even if the implementation returns a jobject. The rationale
272 * being that the SDL headers can avoid including jni.h.
273 *
274 * The jobject returned by the function is a local reference and must be
275 * released by the caller. See the PushLocalFrame() and PopLocalFrame() or
276 * DeleteLocalRef() functions of the Java native interface:
277 *
278 * https://docs.oracle.com/javase/1.5.0/docs/guide/jni/spec/functions.html
279 *
280 * \returns the jobject representing the instance of the Activity class of the
281 * Android application, or NULL on error.
282 *
283 * \since This function is available since SDL 3.0.0.
284 *
285 * \sa SDL_AndroidGetJNIEnv
286 */
287extern DECLSPEC void * SDLCALL SDL_AndroidGetActivity(void);
288
289/**
290 * Query Android API level of the current device.
291 *
292 * - API level 31: Android 12
293 * - API level 30: Android 11
294 * - API level 29: Android 10
295 * - API level 28: Android 9
296 * - API level 27: Android 8.1
297 * - API level 26: Android 8.0
298 * - API level 25: Android 7.1
299 * - API level 24: Android 7.0
300 * - API level 23: Android 6.0
301 * - API level 22: Android 5.1
302 * - API level 21: Android 5.0
303 * - API level 20: Android 4.4W
304 * - API level 19: Android 4.4
305 * - API level 18: Android 4.3
306 * - API level 17: Android 4.2
307 * - API level 16: Android 4.1
308 * - API level 15: Android 4.0.3
309 * - API level 14: Android 4.0
310 * - API level 13: Android 3.2
311 * - API level 12: Android 3.1
312 * - API level 11: Android 3.0
313 * - API level 10: Android 2.3.3
314 *
315 * \returns the Android API level.
316 *
317 * \since This function is available since SDL 3.0.0.
318 */
319extern DECLSPEC int SDLCALL SDL_GetAndroidSDKVersion(void);
320
321/**
322 * Query if the application is running on Android TV.
323 *
324 * \returns SDL_TRUE if this is Android TV, SDL_FALSE otherwise.
325 *
326 * \since This function is available since SDL 3.0.0.
327 */
328extern DECLSPEC SDL_bool SDLCALL SDL_IsAndroidTV(void);
329
330/**
331 * Query if the application is running on a Chromebook.
332 *
333 * \returns SDL_TRUE if this is a Chromebook, SDL_FALSE otherwise.
334 *
335 * \since This function is available since SDL 3.0.0.
336 */
337extern DECLSPEC SDL_bool SDLCALL SDL_IsChromebook(void);
338
339/**
340 * Query if the application is running on a Samsung DeX docking station.
341 *
342 * \returns SDL_TRUE if this is a DeX docking station, SDL_FALSE otherwise.
343 *
344 * \since This function is available since SDL 3.0.0.
345 */
346extern DECLSPEC SDL_bool SDLCALL SDL_IsDeXMode(void);
347
348/**
349 * Trigger the Android system back button behavior.
350 *
351 * \since This function is available since SDL 3.0.0.
352 */
353extern DECLSPEC void SDLCALL SDL_AndroidBackButton(void);
354
355/**
356 See the official Android developer guide for more information:
357 http://developer.android.com/guide/topics/data/data-storage.html
358*/
359#define SDL_ANDROID_EXTERNAL_STORAGE_READ 0x01
360#define SDL_ANDROID_EXTERNAL_STORAGE_WRITE 0x02
361
362/**
363 * Get the path used for internal storage for this application.
364 *
365 * This path is unique to your application and cannot be written to by other
366 * applications.
367 *
368 * Your internal storage path is typically:
369 * `/data/data/your.app.package/files`.
370 *
371 * \returns the path used for internal storage or NULL on failure; call
372 * SDL_GetError() for more information.
373 *
374 * \since This function is available since SDL 3.0.0.
375 *
376 * \sa SDL_AndroidGetExternalStorageState
377 */
378extern DECLSPEC const char * SDLCALL SDL_AndroidGetInternalStoragePath(void);
379
380/**
381 * Get the current state of external storage.
382 *
383 * The current state of external storage, a bitmask of these values:
384 * `SDL_ANDROID_EXTERNAL_STORAGE_READ`, `SDL_ANDROID_EXTERNAL_STORAGE_WRITE`.
385 *
386 * If external storage is currently unavailable, this will return 0.
387 *
388 * \param state filled with the current state of external storage. 0 if external storage is currently unavailable.
389 * \returns 0 on success or a negative error code on failure; call
390 * SDL_GetError() for more information.
391 *
392 * \since This function is available since SDL 3.0.0.
393 *
394 * \sa SDL_AndroidGetExternalStoragePath
395 */
396extern DECLSPEC int SDLCALL SDL_AndroidGetExternalStorageState(Uint32 *state);
397
398/**
399 * Get the path used for external storage for this application.
400 *
401 * This path is unique to your application, but is public and can be written
402 * to by other applications.
403 *
404 * Your external storage path is typically:
405 * `/storage/sdcard0/Android/data/your.app.package/files`.
406 *
407 * \returns the path used for external storage for this application on success
408 * or NULL on failure; call SDL_GetError() for more information.
409 *
410 * \since This function is available since SDL 3.0.0.
411 *
412 * \sa SDL_AndroidGetExternalStorageState
413 */
414extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath(void);
415
416/**
417 * Request permissions at runtime.
418 *
419 * This blocks the calling thread until the permission is granted or denied.
420 *
421 * \param permission The permission to request.
422 * \returns SDL_TRUE if the permission was granted, SDL_FALSE otherwise.
423 *
424 * \since This function is available since SDL 3.0.0.
425 */
426extern DECLSPEC SDL_bool SDLCALL SDL_AndroidRequestPermission(const char *permission);
427
428/**
429 * Shows an Android toast notification.
430 *
431 * Toasts are a sort of lightweight notification that are unique to Android.
432 *
433 * https://developer.android.com/guide/topics/ui/notifiers/toasts
434 *
435 * Shows toast in UI thread.
436 *
437 * For the `gravity` parameter, choose a value from here, or -1 if you don't
438 * have a preference:
439 *
440 * https://developer.android.com/reference/android/view/Gravity
441 *
442 * \param message text message to be shown
443 * \param duration 0=short, 1=long
444 * \param gravity where the notification should appear on the screen.
445 * \param xoffset set this parameter only when gravity >=0
446 * \param yoffset set this parameter only when gravity >=0
447 * \returns 0 on success or a negative error code on failure; call
448 * SDL_GetError() for more information.
449 *
450 * \since This function is available since SDL 3.0.0.
451 */
452extern DECLSPEC int SDLCALL SDL_AndroidShowToast(const char* message, int duration, int gravity, int xoffset, int yoffset);
453
454/**
455 * Send a user command to SDLActivity.
456 *
457 * Override "boolean onUnhandledMessage(Message msg)" to handle the message.
458 *
459 * \param command user command that must be greater or equal to 0x8000
460 * \param param user parameter
461 * \returns 0 on success or a negative error code on failure; call
462 * SDL_GetError() for more information.
463 *
464 * \since This function is available since SDL 3.0.0.
465 */
466extern DECLSPEC int SDLCALL SDL_AndroidSendMessage(Uint32 command, int param);
467
468#endif /* __ANDROID__ */
469
470/* Platform specific functions for WinRT */
471#ifdef __WINRT__
472
473/**
474 * \brief WinRT / Windows Phone path types
475 */
476typedef enum
477{
478 /** \brief The installed app's root directory.
479 Files here are likely to be read-only. */
480 SDL_WINRT_PATH_INSTALLED_LOCATION,
481
482 /** \brief The app's local data store. Files may be written here */
483 SDL_WINRT_PATH_LOCAL_FOLDER,
484
485 /** \brief The app's roaming data store. Unsupported on Windows Phone.
486 Files written here may be copied to other machines via a network
487 connection.
488 */
489 SDL_WINRT_PATH_ROAMING_FOLDER,
490
491 /** \brief The app's temporary data store. Unsupported on Windows Phone.
492 Files written here may be deleted at any time. */
493 SDL_WINRT_PATH_TEMP_FOLDER
494} SDL_WinRT_Path;
495
496
497/**
498 * \brief WinRT Device Family
499 */
500typedef enum
501{
502 /** \brief Unknown family */
503 SDL_WINRT_DEVICEFAMILY_UNKNOWN,
504
505 /** \brief Desktop family*/
506 SDL_WINRT_DEVICEFAMILY_DESKTOP,
507
508 /** \brief Mobile family (for example smartphone) */
509 SDL_WINRT_DEVICEFAMILY_MOBILE,
510
511 /** \brief XBox family */
512 SDL_WINRT_DEVICEFAMILY_XBOX,
513} SDL_WinRT_DeviceFamily;
514
515
516/**
517 * Retrieve a WinRT defined path on the local file system.
518 *
519 * Not all paths are available on all versions of Windows. This is especially
520 * true on Windows Phone. Check the documentation for the given SDL_WinRT_Path
521 * for more information on which path types are supported where.
522 *
523 * Documentation on most app-specific path types on WinRT can be found on
524 * MSDN, at the URL:
525 *
526 * https://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx
527 *
528 * \param pathType the type of path to retrieve, one of SDL_WinRT_Path
529 * \returns a UCS-2 string (16-bit, wide-char) containing the path, or NULL if
530 * the path is not available for any reason; call SDL_GetError() for
531 * more information.
532 *
533 * \since This function is available since SDL 2.0.3.
534 *
535 * \sa SDL_WinRTGetFSPathUTF8
536 */
537extern DECLSPEC const wchar_t * SDLCALL SDL_WinRTGetFSPathUNICODE(SDL_WinRT_Path pathType);
538
539/**
540 * Retrieve a WinRT defined path on the local file system.
541 *
542 * Not all paths are available on all versions of Windows. This is especially
543 * true on Windows Phone. Check the documentation for the given SDL_WinRT_Path
544 * for more information on which path types are supported where.
545 *
546 * Documentation on most app-specific path types on WinRT can be found on
547 * MSDN, at the URL:
548 *
549 * https://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx
550 *
551 * \param pathType the type of path to retrieve, one of SDL_WinRT_Path
552 * \returns a UTF-8 string (8-bit, multi-byte) containing the path, or NULL if
553 * the path is not available for any reason; call SDL_GetError() for
554 * more information.
555 *
556 * \since This function is available since SDL 2.0.3.
557 *
558 * \sa SDL_WinRTGetFSPathUNICODE
559 */
560extern DECLSPEC const char * SDLCALL SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path pathType);
561
562/**
563 * Detects the device family of WinRT platform at runtime.
564 *
565 * \returns a value from the SDL_WinRT_DeviceFamily enum.
566 *
567 * \since This function is available since SDL 3.0.0.
568 */
569extern DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily();
570
571#endif /* __WINRT__ */
572
573/**
574 * Query if the current device is a tablet.
575 *
576 * If SDL can't determine this, it will return SDL_FALSE.
577 *
578 * \returns SDL_TRUE if the device is a tablet, SDL_FALSE otherwise.
579 *
580 * \since This function is available since SDL 3.0.0.
581 */
582extern DECLSPEC SDL_bool SDLCALL SDL_IsTablet(void);
583
584/* Functions used by iOS application delegates to notify SDL about state changes */
585
586/*
587 * \since This function is available since SDL 3.0.0.
588 */
589extern DECLSPEC void SDLCALL SDL_OnApplicationWillTerminate(void);
590
591/*
592 * \since This function is available since SDL 3.0.0.
593 */
594extern DECLSPEC void SDLCALL SDL_OnApplicationDidReceiveMemoryWarning(void);
595
596/*
597 * \since This function is available since SDL 3.0.0.
598 */
599extern DECLSPEC void SDLCALL SDL_OnApplicationWillResignActive(void);
600
601/*
602 * \since This function is available since SDL 3.0.0.
603 */
604extern DECLSPEC void SDLCALL SDL_OnApplicationDidEnterBackground(void);
605
606/*
607 * \since This function is available since SDL 3.0.0.
608 */
609extern DECLSPEC void SDLCALL SDL_OnApplicationWillEnterForeground(void);
610
611/*
612 * \since This function is available since SDL 3.0.0.
613 */
614extern DECLSPEC void SDLCALL SDL_OnApplicationDidBecomeActive(void);
615
616#ifdef __IOS__
617/*
618 * \since This function is available since SDL 3.0.0.
619 */
620extern DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(void);
621#endif
622
623/* Functions used only by GDK */
624#if defined(__GDK__)
625typedef struct XTaskQueueObject * XTaskQueueHandle;
626
627/**
628 * Gets a reference to the global async task queue handle for GDK,
629 * initializing if needed.
630 *
631 * Once you are done with the task queue, you should call
632 * XTaskQueueCloseHandle to reduce the reference count to avoid a resource
633 * leak.
634 *
635 * \param outTaskQueue a pointer to be filled in with task queue handle.
636 * \returns 0 on success or a negative error code on failure; call
637 * SDL_GetError() for more information.
638 *
639 * \since This function is available since SDL 3.0.0.
640 */
641extern DECLSPEC int SDLCALL SDL_GDKGetTaskQueue(XTaskQueueHandle * outTaskQueue);
642
643#endif
644
645/* Ends C function definitions when using C++ */
646#ifdef __cplusplus
647}
648#endif
649#include <SDL3/SDL_close_code.h>
650
651#endif /* SDL_system_h_ */
typedef void(APIENTRYP PFNGLDRAWRANGEELEMENTSPROC)(GLenum mode
GLint GLint GLint yoffset
Definition: SDL_opengl.h:1566
GLint GLint xoffset
Definition: SDL_opengl.h:1566
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLfloat param
GLuint GLsizei const GLchar * message
struct SDL_Renderer SDL_Renderer
Definition: SDL_render.h:154
int64_t Sint64
Definition: SDL_stdinc.h:178
SDL_bool
Definition: SDL_stdinc.h:130
uint64_t Uint64
Definition: SDL_stdinc.h:184
uint32_t Uint32
Definition: SDL_stdinc.h:171
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)
Uint32 SDL_DisplayID
Definition: SDL_video.h:43
struct SDL_Window SDL_Window
The type used to identify a window.
Definition: SDL_video.h:101