2015-05-24 04:32:32 +00:00
|
|
|
// Copyright 2011 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2015-05-24 04:32:32 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2014-03-12 19:33:41 +00:00
|
|
|
#include <string>
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "VideoCommon/VideoBackendBase.h"
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2018-10-03 13:03:26 +00:00
|
|
|
class GLContext;
|
|
|
|
|
2011-01-31 01:28:32 +00:00
|
|
|
namespace OGL
|
|
|
|
{
|
2016-01-12 08:35:24 +00:00
|
|
|
class VideoBackend : public VideoBackendBase
|
2011-01-31 01:28:32 +00:00
|
|
|
{
|
2020-09-06 10:56:45 +00:00
|
|
|
public:
|
2018-10-03 13:03:22 +00:00
|
|
|
bool Initialize(const WindowSystemInfo& wsi) override;
|
2013-10-29 05:34:26 +00:00
|
|
|
void Shutdown() override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2014-03-11 05:55:00 +00:00
|
|
|
std::string GetName() const override;
|
|
|
|
std::string GetDisplayName() const override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2023-03-26 00:16:53 +00:00
|
|
|
void InitBackendInfo(const WindowSystemInfo& wsi) override;
|
2011-01-31 01:28:32 +00:00
|
|
|
|
2020-09-06 10:56:45 +00:00
|
|
|
static constexpr const char* NAME = "OGL";
|
|
|
|
|
2017-03-09 14:01:23 +00:00
|
|
|
private:
|
2018-10-03 13:03:26 +00:00
|
|
|
bool InitializeGLExtensions(GLContext* context);
|
2023-03-26 00:16:53 +00:00
|
|
|
bool FillBackendInfo(GLContext* context);
|
2011-01-31 01:28:32 +00:00
|
|
|
};
|
2018-10-03 13:03:13 +00:00
|
|
|
} // namespace OGL
|