Play-/Source/ui_qt/GSH_OpenGLQt.h

24 lines
452 B
C
Raw Permalink Normal View History

#pragma once
#include "gs/GSH_OpenGL/GSH_OpenGL.h"
class QSurface;
class QOpenGLContext;
class CGSH_OpenGLQt : public CGSH_OpenGL
{
public:
CGSH_OpenGLQt(QSurface*);
2019-09-12 15:12:28 -04:00
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;
};