2018-06-24 19:26:32 +00:00
|
|
|
#pragma once
|
2013-06-23 07:49:34 +00:00
|
|
|
|
2018-06-24 19:26:32 +00:00
|
|
|
#include "base_sysfb.h"
|
2013-06-23 07:49:34 +00:00
|
|
|
|
2018-06-24 19:26:32 +00:00
|
|
|
class SystemGLFrameBuffer : public SystemBaseFrameBuffer
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
2018-06-24 19:26:32 +00:00
|
|
|
typedef SystemBaseFrameBuffer Super;
|
2018-06-17 20:09:25 +00:00
|
|
|
|
2013-06-23 07:49:34 +00:00
|
|
|
public:
|
2018-06-24 18:16:30 +00:00
|
|
|
SystemGLFrameBuffer() {}
|
2013-06-23 07:49:34 +00:00
|
|
|
// Actually, hMonitor is a HMONITOR, but it's passed as a void * as there
|
|
|
|
// look to be some cross-platform bits in the way.
|
2018-06-24 18:16:30 +00:00
|
|
|
SystemGLFrameBuffer(void *hMonitor, bool fullscreen);
|
2013-06-23 07:49:34 +00:00
|
|
|
|
|
|
|
void SetVSync (bool vsync);
|
2013-08-18 12:16:33 +00:00
|
|
|
void SwapBuffers();
|
2013-06-23 07:49:34 +00:00
|
|
|
|
|
|
|
protected:
|
2016-09-25 23:38:25 +00:00
|
|
|
int SwapInterval;
|
2013-06-23 07:49:34 +00:00
|
|
|
};
|