kodi
RetroPlayerUtils.h
1 /*
2  * Copyright (C) 2017-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "cores/GameSettings.h"
12 
13 #include <string>
14 
15 namespace KODI
16 {
17 namespace RETRO
18 {
20 {
21 public:
30  static const char* StretchModeToIdentifier(STRETCHMODE stretchMode);
31 
41  static STRETCHMODE IdentifierToStretchMode(const std::string& stretchMode);
42 };
43 } // namespace RETRO
44 } // namespace KODI
Definition: RetroPlayerUtils.h:19
static STRETCHMODE IdentifierToStretchMode(const std::string &stretchMode)
Convert a stretch mode identifier to an enum.
Definition: RetroPlayerUtils.cpp:35
Definition: AudioDecoder.h:18
STRETCHMODE
Methods for stretching the game to the viewing area.
Definition: GameSettings.h:29
static const char * StretchModeToIdentifier(STRETCHMODE stretchMode)
Convert a stretch mode enum to a short string identifier.
Definition: RetroPlayerUtils.cpp:14