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