Class SdlPlatform


  • public final class SdlPlatform
    extends Object
    Definitions from file SDL_platform.h

    Try to get a standard set of platform defines.

    • Method Detail

      • SDL_GetPlatform

        public static String SDL_GetPlatform()
        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.