mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
2cd240af0d
This stops the virtual method call from within the Renderer constructor. The initialization here for GL had to be moved to VideoBackend, as the Renderer constructor will not have been executed before the value is required.
32 lines
619 B
C++
32 lines
619 B
C++
// Copyright 2011 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "VideoCommon/VideoBackendBase.h"
|
|
|
|
namespace OGL
|
|
{
|
|
class VideoBackend : public VideoBackendBase
|
|
{
|
|
bool Initialize(void*) override;
|
|
void Shutdown() override;
|
|
|
|
std::string GetName() const override;
|
|
std::string GetDisplayName() const override;
|
|
|
|
void Video_Prepare() override;
|
|
void Video_Cleanup() override;
|
|
|
|
void InitBackendInfo() override;
|
|
|
|
unsigned int PeekMessages() override;
|
|
|
|
private:
|
|
bool InitializeGLExtensions();
|
|
bool FillBackendInfo();
|
|
};
|
|
}
|