|
@@ -125,13 +125,13 @@ public:
|
|
|
|
|
|
#ifdef WITH_OPENGL
|
|
|
|
|
|
/** The OpenGL video driver for windows. */
|
|
|
class VideoDriver_Win32OpenGL : public VideoDriver_Win32Base {
|
|
|
public:
|
|
|
VideoDriver_Win32OpenGL() : dc(nullptr), gl_rc(nullptr) {}
|
|
|
VideoDriver_Win32OpenGL() : dc(nullptr), gl_rc(nullptr), anim_buffer(nullptr) {}
|
|
|
|
|
|
const char *Start(const StringList ¶m) override;
|
|
|
|
|
|
void Stop() override;
|
|
|
|
|
|
bool ToggleFullscreen(bool fullscreen) override;
|
|
@@ -141,18 +141,22 @@ public:
|
|
|
bool HasEfficient8Bpp() const override { return true; }
|
|
|
|
|
|
bool UseSystemCursor() override { return true; }
|
|
|
|
|
|
void ClearSystemSprites() override;
|
|
|
|
|
|
bool HasAnimBuffer() override { return true; }
|
|
|
uint8 *GetAnimBuffer() override { return this->anim_buffer; }
|
|
|
|
|
|
const char *GetName() const override { return "win32-opengl"; }
|
|
|
|
|
|
protected:
|
|
|
HDC dc; ///< Window device context.
|
|
|
HGLRC gl_rc; ///< OpenGL context.
|
|
|
bool vsync; ///< Enable VSync?
|
|
|
HDC dc; ///< Window device context.
|
|
|
HGLRC gl_rc; ///< OpenGL context.
|
|
|
bool vsync; ///< Enable VSync?
|
|
|
uint8 *anim_buffer; ///< Animation buffer from OpenGL back-end.
|
|
|
|
|
|
uint8 GetFullscreenBpp() override { return 32; } // OpenGL is always 32 bpp.
|
|
|
|
|
|
void Paint() override;
|
|
|
void PaintThread() override {}
|
|
|
|