/*
 *  Copyright (C) 2017-2026 Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#pragma once

#include "RenderBufferDMA.h"

namespace KODI
{
namespace RETRO
{
class CRenderContext;

class CRenderBufferDMAOpenGLES : public CRenderBufferDMA
{
public:
  CRenderBufferDMAOpenGLES(CRenderContext& context, int fourcc);
  ~CRenderBufferDMAOpenGLES() override = default;

protected:
  // Implementation of CRenderBufferDMA
  bool UploadFromMemory() override;
  void ConfigureTexture() override;

private:
  CRenderContext& m_context;
};
} // namespace RETRO
} // namespace KODI
