| 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/RetroPlayer/rendering/RenderSettings.h" |
| 12 |
#include "utils/Geometry.h" |
| 13 |
|
| 14 |
namespace KODI |
| 15 |
{ |
| 16 |
namespace RETRO |
| 17 |
{ |
| 18 |
/*! |
| 19 |
* \brief Interface to pass render settings from the GUI to the renderer |
| 20 |
*/ |
| 21 |
class IGUIRenderSettings |
| 22 |
{ |
| 23 |
public: |
| 24 |
virtual ~IGUIRenderSettings() = default; |
| 25 |
|
| 26 |
/*! |
| 27 |
* \brief Returns true if this render target has a video filter set |
| 28 |
*/ |
| 29 |
virtual bool HasVideoFilter() const { return true; } |
| 30 |
|
| 31 |
/*! |
| 32 |
* \brief Returns true if this render target has a stretch mode set |
| 33 |
*/ |
| 34 |
virtual bool HasStretchMode() const { return true; } |
| 35 |
|
| 36 |
/*! |
| 37 |
* \brief Returns true if this render target has a video rotation set |
| 38 |
*/ |
| 39 |
virtual bool HasRotation() const { return true; } |
| 40 |
|
| 41 |
/*! |
| 42 |
* \brief Returns true if this render target has a path to a savestate for |
| 43 |
* showing pixel data |
| 44 |
*/ |
| 45 |
virtual bool HasPixels() const { return true; } |
| 46 |
|
| 47 |
/*! |
| 48 |
* \brief Get the settings used to render this target |
| 49 |
* |
| 50 |
* \return The render settings |
| 51 |
*/ |
| 52 |
virtual CRenderSettings GetSettings() const = 0; |
| 53 |
|
| 54 |
/*! |
| 55 |
* \brief Get the dimensions of this target |
| 56 |
* |
| 57 |
* Dimensions are ignored for fullscreen windows. |
| 58 |
* |
| 59 |
* \return The destination dimensions, or unused for fullscreen window |
| 60 |
*/ |
| 61 |
virtual CRect GetDimensions() const { return CRect{}; } |
| 62 |
}; |
| 63 |
} // namespace RETRO |
| 64 |
} // namespace KODI |