Play-/Source/ui_qt/GSH_OpenGLQt.h
2021-01-07 21:47:32 +00:00

23 lines
452 B
C++

#pragma once
#include "gs/GSH_OpenGL/GSH_OpenGL.h"
class QSurface;
class QOpenGLContext;
class CGSH_OpenGLQt : public CGSH_OpenGL
{
public:
CGSH_OpenGLQt(QSurface*);
virtual ~CGSH_OpenGLQt() = default;
static FactoryFunction GetFactoryFunction(QSurface*);
void InitializeImpl() override;
void ReleaseImpl() override;
void PresentBackbuffer() override;
private:
QSurface* m_renderSurface = nullptr;
QOpenGLContext* m_context = nullptr;
};