2018-06-24 18:11:08 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-06-24 18:47:00 +00:00
|
|
|
#include "win32basevideo.h"
|
2018-06-24 18:11:08 +00:00
|
|
|
|
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
|
2018-06-24 18:47:00 +00:00
|
|
|
class Win32GLVideo : public Win32BaseVideo
|
2018-06-24 18:11:08 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-06-24 18:47:00 +00:00
|
|
|
Win32GLVideo();
|
2018-06-24 18:11:08 +00:00
|
|
|
|
2018-06-24 18:47:00 +00:00
|
|
|
DFrameBuffer *CreateFrameBuffer() override;
|
2018-06-24 18:11:08 +00:00
|
|
|
bool InitHardware(HWND Window, int multisample);
|
|
|
|
void Shutdown();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
HGLRC m_hRC;
|
|
|
|
|
|
|
|
HWND InitDummy();
|
|
|
|
void ShutdownDummy(HWND dummy);
|
|
|
|
bool SetPixelFormat();
|
|
|
|
bool SetupPixelFormat(int multisample);
|
|
|
|
};
|