2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "cores/RetroPlayer/buffers/video/RenderBufferSysMem.h"
13 #include "system_gl.h"
21 class CRenderBufferOpenGL
: public CRenderBufferSysMem
24 CRenderBufferOpenGL(GLuint pixeltype
, GLuint internalformat
, GLuint pixelformat
, GLuint bpp
);
25 ~CRenderBufferOpenGL() override
;
27 bool UploadTexture() override
;
28 GLuint
TextureID() const { return m_textureId
; }
31 // Construction parameters
32 const GLuint m_pixeltype
;
33 const GLuint m_internalformat
;
34 const GLuint m_pixelformat
;
37 const GLenum m_textureTarget
= GL_TEXTURE_2D
; //! @todo
38 GLuint m_textureId
= 0;