| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <string> |
| 7 |
#include "VideoCommon/VideoBackendBase.h" |
| 8 |
|
| 9 |
class GLContext; |
| 10 |
|
| 11 |
namespace OGL |
| 12 |
{ |
| 13 |
class VideoBackend : public VideoBackendBase |
| 14 |
{ |
| 15 |
public: |
| 16 |
bool Initialize(const WindowSystemInfo& wsi) override; |
| 17 |
void Shutdown() override; |
| 18 |
|
| 19 |
std::string GetConfigName() const override; |
| 20 |
std::string GetDisplayName() const override; |
| 21 |
|
| 22 |
void InitBackendInfo(const WindowSystemInfo& wsi) override; |
| 23 |
|
| 24 |
static constexpr const char* CONFIG_NAME = "OGL"; |
| 25 |
|
| 26 |
private: |
| 27 |
bool InitializeGLExtensions(GLContext* context); |
| 28 |
bool FillBackendInfo(GLContext* context); |
| 29 |
}; |
| 30 |
} |