Class SdlGuid


  • public final class SdlGuid
    extends Object
    Definitions from file SDL_guid.h

    This class contains functions for handling SDL_GUID values.

    • Constructor Detail

      • SdlGuid

        public SdlGuid()
    • Method Detail

      • SDL_GUIDToString

        public static String SDL_GUIDToString​(SDL_GUID guid)
        Get an ASCII string representation for a given SDL_GUID.

        You should supply at least 33 bytes for pszGUID.

        Parameters:
        guid - the SDL_GUID you wish to convert to string
        Since:
        This function is available since SDL 2.24.0.
        See Also:
        SDL_GUIDFromString(String)
      • SDL_GUIDFromString

        public static SDL_GUID SDL_GUIDFromString​(String pchGUID)
        Convert a GUID string into a SDL_GUID structure.

        Performs no error checking. If this function is given a string containing an invalid GUID, the function will silently succeed, but the GUID generated will not be useful.

        Parameters:
        pchGUID - string containing an ASCII representation of a GUID
        Returns:
        a SDL_GUID structure.
        Since:
        This function is available since SDL 2.24.0.
        See Also:
        SDL_GUIDToString(SDL_GUID)