Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Class to safely route commands between the GUI and RetroPlayer. More...
#include <GUIGameRenderManager.h>
Public Member Functions | |
CGUIGameRenderManager ()=default | |
~CGUIGameRenderManager () | |
void | RegisterPlayer (CGUIRenderTargetFactory *factory, IRenderCallback *callback, IGameCallback *gameCallback) |
Register a RetroPlayer instance. | |
void | UnregisterPlayer () |
Unregister a RetroPlayer instance. | |
std::shared_ptr< CGUIRenderHandle > | RegisterControl (CGUIGameControl &control) |
Register a GUI game control ("gamewindow" skin control) | |
std::shared_ptr< CGUIRenderHandle > | RegisterWindow (CGameWindowFullScreen &window) |
Register a fullscreen game window ("FullscreenGame" window) | |
std::shared_ptr< CGUIGameVideoHandle > | RegisterDialog (GAME::CDialogGameVideoSelect &dialog) |
Register a video select dialog (for selecting video filters, view modes, etc.) | |
std::shared_ptr< CGUIGameSettingsHandle > | RegisterGameSettingsDialog () |
Register a game settings dialog. | |
Protected Member Functions | |
void | UnregisterHandle (CGUIRenderHandle *handle) |
void | Render (CGUIRenderHandle *handle) |
void | RenderEx (CGUIRenderHandle *handle) |
void | ClearBackground (CGUIRenderHandle *handle) |
bool | IsDirty (CGUIRenderHandle *handle) |
void | UnregisterHandle (CGUIGameVideoHandle *handle) |
bool | IsPlayingGame () |
bool | SupportsRenderFeature (RENDERFEATURE feature) |
bool | SupportsScalingMethod (SCALINGMETHOD method) |
void | UnregisterHandle (CGUIGameSettingsHandle *handle) |
std::string | GameClientID () |
std::string | GetPlayingGame () |
std::string | CreateSavestate (bool autosave) |
bool | UpdateSavestate (const std::string &savestatePath) |
bool | LoadSavestate (const std::string &savestatePath) |
void | FreeSavestateResources (const std::string &savestatePath) |
void | CloseOSD () |
Friends | |
class | CGUIGameSettingsHandle |
class | CGUIGameVideoHandle |
class | CGUIRenderHandle |
Class to safely route commands between the GUI and RetroPlayer.
This class is brought up before the GUI and player core factory. It provides the GUI with safe access to a registered player.
Access to the player is done through handles. When a handle is no longer needed, it should be destroyed.
Three kinds of handles are provided:
Each manager fulfills the following design requirements:
|
default |
|
default |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
std::shared_ptr< CGUIRenderHandle > CGUIGameRenderManager::RegisterControl | ( | CGUIGameControl & | control | ) |
Register a GUI game control ("gamewindow" skin control)
control | The game control |
std::shared_ptr< CGUIGameVideoHandle > CGUIGameRenderManager::RegisterDialog | ( | GAME::CDialogGameVideoSelect & | dialog | ) |
Register a video select dialog (for selecting video filters, view modes, etc.)
dialog | The video select dialog |
std::shared_ptr< CGUIGameSettingsHandle > CGUIGameRenderManager::RegisterGameSettingsDialog | ( | ) |
Register a game settings dialog.
void CGUIGameRenderManager::RegisterPlayer | ( | CGUIRenderTargetFactory * | factory, |
IRenderCallback * | callback, | ||
IGameCallback * | gameCallback ) |
Register a RetroPlayer instance.
factory | The interface for creating render targets exposed to the GUI |
callback | The interface for querying video properties |
gameCallback | The interface for querying game properties |
std::shared_ptr< CGUIRenderHandle > CGUIGameRenderManager::RegisterWindow | ( | CGameWindowFullScreen & | window | ) |
Register a fullscreen game window ("FullscreenGame" window)
window | The game window |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotected |
|
inlineprotected |
|
protected |
void CGUIGameRenderManager::UnregisterPlayer | ( | ) |
Unregister a RetroPlayer instance.
|
protected |
|
friend |
|
friend |
|
friend |