SDL 3.0
SDL_platform.h File Reference
+ Include dependency graph for SDL_platform.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * SDL_GetPlatform (void)
 

Detailed Description

Header file for platform functions.

Definition in file SDL_platform.h.

Function Documentation

◆ SDL_GetPlatform()

const char * SDL_GetPlatform ( void  )
extern

Get the name of the platform.

Here are the names returned for some (but not all) supported platforms:

  • "Windows"
  • "macOS"
  • "Linux"
  • "iOS"
  • "Android"
Returns
the name of the platform. If the correct platform name is not available, returns a string beginning with the text "Unknown".
Since
This function is available since SDL 3.0.0.