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 * \brief 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
389 * external storage is currently unavailable.
390 * \returns 0 on success or a negative error code on failure; call
391 * SDL_GetError() for more information.
392 *
393 * \since This function is available since SDL 3.0.0.
394 *
395 * \sa SDL_AndroidGetExternalStoragePath
396 */
397extern DECLSPEC int SDLCALL SDL_AndroidGetExternalStorageState(Uint32 *state);
398
399/**
400 * Get the path used for external storage for this application.
401 *
402 * This path is unique to your application, but is public and can be written
403 * to by other applications.
404 *
405 * Your external storage path is typically:
406 * `/storage/sdcard0/Android/data/your.app.package/files`.
407 *
408 * \returns the path used for external storage for this application on success
409 * or NULL on failure; call SDL_GetError() for more information.
410 *
411 * \since This function is available since SDL 3.0.0.
412 *
413 * \sa SDL_AndroidGetExternalStorageState
414 */
415extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath(void);
416
417/**
418 * Request permissions at runtime.
419 *
420 * This blocks the calling thread until the permission is granted or denied.
421 *
422 * \param permission The permission to request.
423 * \returns SDL_TRUE if the permission was granted, SDL_FALSE otherwise.
424 *
425 * \since This function is available since SDL 3.0.0.
426 */
427extern DECLSPEC SDL_bool SDLCALL SDL_AndroidRequestPermission(const char *permission);
428
429/**
430 * Shows an Android toast notification.
431 *
432 * Toasts are a sort of lightweight notification that are unique to Android.
433 *
434 * https://developer.android.com/guide/topics/ui/notifiers/toasts
435 *
436 * Shows toast in UI thread.
437 *
438 * For the `gravity` parameter, choose a value from here, or -1 if you don't
439 * have a preference:
440 *
441 * https://developer.android.com/reference/android/view/Gravity
442 *
443 * \param message text message to be shown
444 * \param duration 0=short, 1=long
445 * \param gravity where the notification should appear on the screen.
446 * \param xoffset set this parameter only when gravity >=0
447 * \param yoffset set this parameter only when gravity >=0
448 * \returns 0 on success or a negative error code on failure; call
449 * SDL_GetError() for more information.
450 *
451 * \since This function is available since SDL 3.0.0.
452 */
453extern DECLSPEC int SDLCALL SDL_AndroidShowToast(const char* message, int duration, int gravity, int xoffset, int yoffset);
454
455/**
456 * Send a user command to SDLActivity.
457 *
458 * Override "boolean onUnhandledMessage(Message msg)" to handle the message.
459 *
460 * \param command user command that must be greater or equal to 0x8000
461 * \param param user parameter
462 * \returns 0 on success or a negative error code on failure; call
463 * SDL_GetError() for more information.
464 *
465 * \since This function is available since SDL 3.0.0.
466 */
467extern DECLSPEC int SDLCALL SDL_AndroidSendMessage(Uint32 command, int param);
468
469#endif /* __ANDROID__ */
470
471/* Platform specific functions for WinRT */
472#ifdef __WINRT__
473
474/**
475 * \brief WinRT / Windows Phone path types
476 */
477typedef enum
478{
479 /** \brief The installed app's root directory.
480 Files here are likely to be read-only. */
481 SDL_WINRT_PATH_INSTALLED_LOCATION,
482
483 /** \brief The app's local data store. Files may be written here */
484 SDL_WINRT_PATH_LOCAL_FOLDER,
485
486 /** \brief The app's roaming data store. Unsupported on Windows Phone.
487 Files written here may be copied to other machines via a network
488 connection.
489 */
490 SDL_WINRT_PATH_ROAMING_FOLDER,
491
492 /** \brief The app's temporary data store. Unsupported on Windows Phone.
493 Files written here may be deleted at any time. */
494 SDL_WINRT_PATH_TEMP_FOLDER
495} SDL_WinRT_Path;
496
497
498/**
499 * \brief WinRT Device Family
500 */
501typedef enum
502{
503 /** \brief Unknown family */
504 SDL_WINRT_DEVICEFAMILY_UNKNOWN,
505
506 /** \brief Desktop family*/
507 SDL_WINRT_DEVICEFAMILY_DESKTOP,
508
509 /** \brief Mobile family (for example smartphone) */
510 SDL_WINRT_DEVICEFAMILY_MOBILE,
511
512 /** \brief XBox family */
513 SDL_WINRT_DEVICEFAMILY_XBOX,
514} SDL_WinRT_DeviceFamily;
515
516
517/**
518 * Retrieve a WinRT defined path on the local file system.
519 *
520 * Not all paths are available on all versions of Windows. This is especially
521 * true on Windows Phone. Check the documentation for the given SDL_WinRT_Path
522 * for more information on which path types are supported where.
523 *
524 * Documentation on most app-specific path types on WinRT can be found on
525 * MSDN, at the URL:
526 *
527 * https://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx
528 *
529 * \param pathType the type of path to retrieve, one of SDL_WinRT_Path
530 * \returns a UCS-2 string (16-bit, wide-char) containing the path, or NULL if
531 * the path is not available for any reason; call SDL_GetError() for
532 * more information.
533 *
534 * \since This function is available since SDL 2.0.3.
535 *
536 * \sa SDL_WinRTGetFSPathUTF8
537 */
538extern DECLSPEC const wchar_t * SDLCALL SDL_WinRTGetFSPathUNICODE(SDL_WinRT_Path pathType);
539
540/**
541 * Retrieve a WinRT defined path on the local file system.
542 *
543 * Not all paths are available on all versions of Windows. This is especially
544 * true on Windows Phone. Check the documentation for the given SDL_WinRT_Path
545 * for more information on which path types are supported where.
546 *
547 * Documentation on most app-specific path types on WinRT can be found on
548 * MSDN, at the URL:
549 *
550 * https://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx
551 *
552 * \param pathType the type of path to retrieve, one of SDL_WinRT_Path
553 * \returns a UTF-8 string (8-bit, multi-byte) containing the path, or NULL if
554 * the path is not available for any reason; call SDL_GetError() for
555 * more information.
556 *
557 * \since This function is available since SDL 2.0.3.
558 *
559 * \sa SDL_WinRTGetFSPathUNICODE
560 */
561extern DECLSPEC const char * SDLCALL SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path pathType);
562
563/**
564 * Detects the device family of WinRT platform at runtime.
565 *
566 * \returns a value from the SDL_WinRT_DeviceFamily enum.
567 *
568 * \since This function is available since SDL 3.0.0.
569 */
570extern DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily();
571
572#endif /* __WINRT__ */
573
574/**
575 * Query if the current device is a tablet.
576 *
577 * If SDL can't determine this, it will return SDL_FALSE.
578 *
579 * \returns SDL_TRUE if the device is a tablet, SDL_FALSE otherwise.
580 *
581 * \since This function is available since SDL 3.0.0.
582 */
583extern DECLSPEC SDL_bool SDLCALL SDL_IsTablet(void);
584
585/* Functions used by iOS application delegates to notify SDL about state changes */
586
587/*
588 * \since This function is available since SDL 3.0.0.
589 */
590extern DECLSPEC void SDLCALL SDL_OnApplicationWillTerminate(void);
591
592/*
593 * \since This function is available since SDL 3.0.0.
594 */
595extern DECLSPEC void SDLCALL SDL_OnApplicationDidReceiveMemoryWarning(void);
596
597/*
598 * \since This function is available since SDL 3.0.0.
599 */
600extern DECLSPEC void SDLCALL SDL_OnApplicationWillResignActive(void);
601
602/*
603 * \since This function is available since SDL 3.0.0.
604 */
605extern DECLSPEC void SDLCALL SDL_OnApplicationDidEnterBackground(void);
606
607/*
608 * \since This function is available since SDL 3.0.0.
609 */
610extern DECLSPEC void SDLCALL SDL_OnApplicationWillEnterForeground(void);
611
612/*
613 * \since This function is available since SDL 3.0.0.
614 */
615extern DECLSPEC void SDLCALL SDL_OnApplicationDidBecomeActive(void);
616
617#ifdef __IOS__
618/*
619 * \since This function is available since SDL 3.0.0.
620 */
621extern DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(void);
622#endif
623
624/* Functions used only by GDK */
625#ifdef __GDK__
626typedef struct XTaskQueueObject *XTaskQueueHandle;
627typedef struct XUser *XUserHandle;
628
629/**
630 * Gets a reference to the global async task queue handle for GDK,
631 * initializing if needed.
632 *
633 * Once you are done with the task queue, you should call
634 * XTaskQueueCloseHandle to reduce the reference count to avoid a resource
635 * leak.
636 *
637 * \param outTaskQueue a pointer to be filled in with task queue handle.
638 * \returns 0 on success or a negative error code on failure; call
639 * SDL_GetError() for more information.
640 *
641 * \since This function is available since SDL 3.0.0.
642 */
643extern DECLSPEC int SDLCALL SDL_GDKGetTaskQueue(XTaskQueueHandle * outTaskQueue);
644
645/**
646 * Gets a reference to the default user handle for GDK.
647 *
648 * This is effectively a synchronous version of XUserAddAsync, which always
649 * prefers the default user and allows a sign-in UI.
650 *
651 * \param outUserHandle a pointer to be filled in with the default user
652 * handle.
653 * \returns 0 if success, -1 if any error occurs.
654 *
655 * \since This function is available since SDL 2.28.0.
656 */
657extern DECLSPEC int SDLCALL SDL_GDKGetDefaultUser(XUserHandle * outUserHandle);
658
659#endif
660
661/* Ends C function definitions when using C++ */
662#ifdef __cplusplus
663}
664#endif
665#include <SDL3/SDL_close_code.h>
666
667#endif /* SDL_system_h_ */
Include file for SDL keyboard event handling.
Header file for SDL 2D rendering functions.
struct SDL_Renderer SDL_Renderer
Definition SDL_render.h:153
This is a general header that includes C language support.
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)
Header file for SDL video functions.
Uint32 SDL_DisplayID
Definition SDL_video.h:43
struct SDL_Window SDL_Window
The type used to identify a window.
Definition SDL_video.h:123