kodi
IRenderManager.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 "utils/Geometry.h"
12 
13 struct RESOLUTION_INFO;
14 
15 namespace KODI
16 {
17 namespace RETRO
18 {
19 class IGUIRenderSettings;
20 
25 {
26 public:
27  virtual ~IRenderManager() = default;
28 
35  virtual void RenderWindow(bool bClear, const RESOLUTION_INFO& coordsRes) = 0;
36 
45  virtual void RenderControl(bool bClear,
46  bool bUseAlpha,
47  const CRect& renderRegion,
48  const IGUIRenderSettings* renderSettings) = 0;
49 
53  virtual void ClearBackground() = 0;
54 };
55 } // namespace RETRO
56 } // namespace KODI
Interface to pass render settings from the GUI to the renderer.
Definition: IGUIRenderSettings.h:21
virtual void RenderWindow(bool bClear, const RESOLUTION_INFO &coordsRes)=0
Render a fullscreen window.
virtual void RenderControl(bool bClear, bool bUseAlpha, const CRect &renderRegion, const IGUIRenderSettings *renderSettings)=0
Render a game control.
Provide info of a resolution.
Definition: Resolution.h:66
virtual void ClearBackground()=0
Clear the background of a fullscreen window.
Definition: AudioDecoder.h:18
Interface to expose rendering functions to GUI components.
Definition: IRenderManager.h:24