2015-05-24 07:32:32 +03:00
|
|
|
// Copyright 2011 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2014-02-10 20:54:46 +02:00
|
|
|
#pragma once
|
2011-01-31 03:28:32 +02:00
|
|
|
|
2014-03-12 21:33:41 +02:00
|
|
|
#include <string>
|
2014-02-17 12:18:15 +02:00
|
|
|
#include "VideoCommon/VideoBackendBase.h"
|
2011-01-31 03:28:32 +02:00
|
|
|
|
2018-10-03 16:03:26 +03:00
|
|
|
class GLContext;
|
|
|
|
|
2011-01-31 03:28:32 +02:00
|
|
|
namespace OGL
|
|
|
|
{
|
2016-01-12 10:35:24 +02:00
|
|
|
class VideoBackend : public VideoBackendBase
|
2011-01-31 03:28:32 +02:00
|
|
|
{
|
2020-09-06 13:56:45 +03:00
|
|
|
public:
|
2018-10-03 16:03:22 +03:00
|
|
|
bool Initialize(const WindowSystemInfo& wsi) override;
|
2013-10-29 07:34:26 +02:00
|
|
|
void Shutdown() override;
|
2011-01-31 03:28:32 +02:00
|
|
|
|
2014-03-11 07:55:00 +02:00
|
|
|
std::string GetName() const override;
|
|
|
|
std::string GetDisplayName() const override;
|
2011-01-31 03:28:32 +02:00
|
|
|
|
2016-01-13 22:38:11 +02:00
|
|
|
void InitBackendInfo() override;
|
2011-01-31 03:28:32 +02:00
|
|
|
|
2020-09-06 13:56:45 +03:00
|
|
|
static constexpr const char* NAME = "OGL";
|
|
|
|
|
2017-03-09 16:01:23 +02:00
|
|
|
private:
|
2018-10-03 16:03:26 +03:00
|
|
|
bool InitializeGLExtensions(GLContext* context);
|
2017-03-09 16:01:23 +02:00
|
|
|
bool FillBackendInfo();
|
2011-01-31 03:28:32 +02:00
|
|
|
};
|
2018-10-03 16:03:13 +03:00
|
|
|
} // namespace OGL
|