My Project
Loading...
Searching...
No Matches
SDL_platform.h File Reference
#include "begin_code.h"
#include "close_code.h"

Go to the source code of this file.

Functions

DECLSPEC const char *SDLCALL SDL_GetPlatform (void)
 

Detailed Description

Try to get a standard set of platform defines.

Function Documentation

◆ SDL_GetPlatform()

DECLSPEC const char *SDLCALL SDL_GetPlatform ( void  )

Get the name of the platform.

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

  • "Windows"
  • "Mac OS X"
  • "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 2.0.0.