mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-18 10:11:50 +00:00
5da0f5c7fa
Nothing is hooked up yet and adjusted - next thing to do.
49 lines
1,014 B
C++
49 lines
1,014 B
C++
#ifndef __POSIX_SDL_GL_SYSFB_H__
|
|
#define __POSIX_SDL_GL_SYSFB_H__
|
|
|
|
#include <SDL.h>
|
|
|
|
#include "v_video.h"
|
|
|
|
class SystemBaseFrameBuffer : public DFrameBuffer
|
|
{
|
|
typedef DFrameBuffer Super;
|
|
|
|
public:
|
|
// this must have the same parameters as the Windows version, even if they are not used!
|
|
SystemBaseFrameBuffer (void *hMonitor, bool fullscreen);
|
|
|
|
bool IsFullscreen() override;
|
|
|
|
int GetClientWidth() override;
|
|
int GetClientHeight() override;
|
|
|
|
void ToggleFullscreen(bool yes) override;
|
|
void SetWindowSize(int client_w, int client_h) override;
|
|
|
|
protected:
|
|
SystemBaseFrameBuffer () {}
|
|
};
|
|
|
|
class SystemGLFrameBuffer : public SystemBaseFrameBuffer
|
|
{
|
|
typedef SystemBaseFrameBuffer Super;
|
|
|
|
public:
|
|
SystemGLFrameBuffer(void *hMonitor, bool fullscreen);
|
|
~SystemGLFrameBuffer();
|
|
|
|
int GetClientWidth() override;
|
|
int GetClientHeight() override;
|
|
|
|
virtual void SetVSync(bool vsync) override;
|
|
void SwapBuffers();
|
|
|
|
protected:
|
|
SDL_GLContext GLContext;
|
|
|
|
SystemGLFrameBuffer() {}
|
|
};
|
|
|
|
#endif // __POSIX_SDL_GL_SYSFB_H__
|
|
|