sdl.platform: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = sdl.platform | ||
|side = shared | |||
|type = variable | |type = variable | ||
| | |games = iii vc sa iv | ||
| | |desc = fetch the platform | ||
|return = string a string representing the platform | |||
|note = [https://wiki.libsdl.org/SDL_GetPlatform View this function on the SDL Manual]<br> | |||
| | |||
| | |||
Examples of a platform name returned, include: | Examples of a platform name returned, include: | ||
* Windows | * Windows | ||
Line 14: | Line 13: | ||
* iOS | * iOS | ||
* Android | * Android | ||
|readonly = true | |||
}} | }} |
Latest revision as of 20:36, 19 November 2022
Variable
Server and Client
Online and Offline
Read-Only
Available since Server 1.0.0, Client 1.0.0
string sdl.platform
The sdl.platform variable is used to fetch the platform.
Value
string | A string representing the platform. |
readonly | This variable cannot be changed. |
Notes
Examples of a platform name returned, include:
- Windows
- Mac OS X
- Linux
- iOS
- Android.
Examples
There aren't any examples for this variable.
Compatibility
There isn't any compatibility information for this variable.