Play-/Source/ui_win32/GSH_OpenGLWin32.h
Jean-Philip Desjardins e8a1d697e1 Added some overrides.
2016-04-16 23:37:49 -04:00

33 lines
852 B
C++

#pragma once
#include "../gs/GSH_OpenGL/GSH_OpenGL.h"
#include "win32/Window.h"
#include "SettingsDialogProvider.h"
class CGSH_OpenGLWin32 : public CGSH_OpenGL, public CSettingsDialogProvider
{
public:
CGSH_OpenGLWin32(Framework::Win32::CWindow*);
virtual ~CGSH_OpenGLWin32();
static FactoryFunction GetFactoryFunction(Framework::Win32::CWindow*);
void InitializeImpl() override;
void ReleaseImpl() override;
Framework::Win32::CWindow* CreateSettingsDialog(HWND) override;
void OnSettingsDialogDestroyed() override;
protected:
void PresentBackbuffer() override;
private:
static CGSHandler* GSHandlerFactory(Framework::Win32::CWindow*);
Framework::Win32::CWindow* m_outputWnd = nullptr;
HGLRC m_context = nullptr;
HDC m_dc = nullptr;
static PIXELFORMATDESCRIPTOR m_pfd;
};