File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ interface
8484{ $I SDL_hints.inc} // 3.2.0
8585{ $I SDL_misc.inc} // 3.2.0
8686{ $I SDL_stdinc.inc} // 3.1.6-prev (unfinished)
87+ { $I SDL_platform.inc} // 3.2.0
8788{ $I SDL_loadso.inc} // 3.2.0
8889{ $I SDL_rect.inc} // 3.1.6-prev
8990{ $I SDL_properties.inc} // 3.1.6-prev
Original file line number Diff line number Diff line change 1+ {
2+ This file is part of:
3+
4+ SDL3 for Pascal
5+ (https:// github.com/PascalGameDevelopment/SDL3-for-Pascal)
6+ SPDX-License-Identifier: Zlib
7+ }
8+
9+ {*
10+ * # CategoryPlatform
11+ *
12+ * SDL provides a means to identify the app' s platform, both at compile time
13+ * and runtime.
14+ }
15+
16+ {*
17+ * Get the name of the platform.
18+ *
19+ * Here are the names returned for some (but not all) supported platforms:
20+ *
21+ * - "Windows"
22+ * - "macOS"
23+ * - "Linux"
24+ * - "iOS"
25+ * - "Android"
26+ *
27+ * \r eturns the name of the platform. If the correct platform name is not
28+ * available, returns a string beginning with the text "Unknown".
29+ *
30+ * \s ince This function is available since SDL 3.2.0.
31+ }
32+ function SDL_GetPlatform: PAnsiChar; cdecl;
33+ external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name ' _SDL_GetPlatform' {$ENDIF} {$ENDIF};
34+
You can’t perform that action at this time.
0 commit comments