summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorSebastian Hartte <sebastian@hartte.de>2019-03-14 21:40:30 +0100
committerSebastian Hartte <sebastian@hartte.de>2019-04-06 17:52:52 +0200
commit3a8c6db513ad54970d4324d9e2b3948db69e0ab0 (patch)
treef216e29548a7233ab70c9f9936b4ec7dedc789af /platform/windows
parentcc3e660d7e13665fd5242502fb677d3e5f30ec18 (diff)
Remove ContextGL since as an abstraction it's unused.
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/context_gl_windows.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/platform/windows/context_gl_windows.h b/platform/windows/context_gl_windows.h
index 09801b9146..d23fba50e1 100644
--- a/platform/windows/context_gl_windows.h
+++ b/platform/windows/context_gl_windows.h
@@ -37,13 +37,12 @@
#include "core/error_list.h"
#include "core/os/os.h"
-#include "drivers/gl_context/context_gl.h"
#include <windows.h>
typedef bool(APIENTRY *PFNWGLSWAPINTERVALEXTPROC)(int interval);
-class ContextGL_Windows : public ContextGL {
+class ContextGL_Windows {
HDC hDC;
HGLRC hRC;
@@ -55,21 +54,21 @@ class ContextGL_Windows : public ContextGL {
PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT;
public:
- virtual void release_current();
+ void release_current();
- virtual void make_current();
+ void make_current();
- virtual int get_window_width();
- virtual int get_window_height();
- virtual void swap_buffers();
+ int get_window_width();
+ int get_window_height();
+ void swap_buffers();
- virtual Error initialize();
+ Error initialize();
- virtual void set_use_vsync(bool p_use);
- virtual bool is_using_vsync() const;
+ void set_use_vsync(bool p_use);
+ bool is_using_vsync() const;
ContextGL_Windows(HWND hwnd, bool p_opengl_3_context);
- virtual ~ContextGL_Windows();
+ ~ContextGL_Windows();
};
#endif