kodi
Static Public Member Functions | List of all members
KODI::RETRO::CRetroPlayerUtils Class Reference

Static Public Member Functions

static const char * StretchModeToIdentifier (STRETCHMODE stretchMode)
 Convert a stretch mode enum to a short string identifier. More...
 
static STRETCHMODE IdentifierToStretchMode (const std::string &stretchMode)
 Convert a stretch mode identifier to an enum. More...
 

Member Function Documentation

◆ IdentifierToStretchMode()

STRETCHMODE CRetroPlayerUtils::IdentifierToStretchMode ( const std::string &  stretchMode)
static

Convert a stretch mode identifier to an enum.

Parameters
stretchModeThe short string identifier, from GameSettings.h, representing the stretch mode
Returns
The stretch mode enum, or STRETCHMODE::Normal if the identifier is invalid

◆ StretchModeToIdentifier()

const char * CRetroPlayerUtils::StretchModeToIdentifier ( STRETCHMODE  stretchMode)
static

Convert a stretch mode enum to a short string identifier.

Parameters
stretchModeThe stretch mode
Returns
A short string identifier specified by GameSettings.h, or an empty string if the stretch mode is invalid

The documentation for this class was generated from the following files: