Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::RETRO::CRetroPlayerUtils Class Reference

#include <RetroPlayerUtils.h>

Static Public Member Functions

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

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: