Function SDL_GetPlatform
pub unsafe extern "C" fn SDL_GetPlatform() -> *const i8
Available on crate feature
dep_sdl3
only.Expand description
Get the name of the platform.
Here are the names returned for some (but not all) supported platforms:
- “Windows”
- “macOS”
- “Linux”
- “iOS”
- “Android”
§Return value
Returns the name of the platform. If the correct platform name is not available, returns a string beginning with the text “Unknown”.
§Availability
This function is available since SDL 3.2.0.