| 1 |
/* |
| 2 |
* Copyright (C) 2005-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 "BaseRenderBufferPool.h" |
| 12 |
#include "IRenderBuffer.h" |
| 13 |
|
| 14 |
#include "system_gl.h" |
| 15 |
|
| 16 |
namespace KODI |
| 17 |
{ |
| 18 |
namespace RETRO |
| 19 |
{ |
| 20 |
class CRenderContext; |
| 21 |
class CRenderVideoSettings; |
| 22 |
|
| 23 |
class CRenderBufferPoolOpenGLES : public CBaseRenderBufferPool |
| 24 |
{ |
| 25 |
public: |
| 26 |
CRenderBufferPoolOpenGLES(CRenderContext& context); |
| 27 |
~CRenderBufferPoolOpenGLES() override = default; |
| 28 |
|
| 29 |
// implementation of IRenderBufferPool via CBaseRenderBufferPool |
| 30 |
bool IsCompatible(const CRenderVideoSettings& renderSettings) const override; |
| 31 |
|
| 32 |
private: |
| 33 |
// implementation of CBaseRenderBufferPool |
| 34 |
IRenderBuffer* CreateRenderBuffer(void* header = nullptr) override; |
| 35 |
bool ConfigureInternal() override; |
| 36 |
|
| 37 |
// Construction parameters |
| 38 |
CRenderContext& m_context; |
| 39 |
|
| 40 |
// Configuration parameters |
| 41 |
GLuint m_pixeltype = 0; |
| 42 |
GLuint m_internalformat = 0; |
| 43 |
GLuint m_pixelformat = 0; |
| 44 |
GLuint m_bpp = 0; |
| 45 |
}; |
| 46 |
} // namespace RETRO |
| 47 |
} // namespace KODI |