summaryrefslogtreecommitdiff
path: root/platform/uwp
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/uwp
parentcc3e660d7e13665fd5242502fb677d3e5f30ec18 (diff)
Remove ContextGL since as an abstraction it's unused.
Diffstat (limited to 'platform/uwp')
-rw-r--r--platform/uwp/context_egl_uwp.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/platform/uwp/context_egl_uwp.h b/platform/uwp/context_egl_uwp.h
index 812bdfb688..0c62fe7456 100644
--- a/platform/uwp/context_egl_uwp.h
+++ b/platform/uwp/context_egl_uwp.h
@@ -37,11 +37,10 @@
#include "core/error_list.h"
#include "core/os/os.h"
-#include "drivers/gl_context/context_gl.h"
using namespace Windows::UI::Core;
-class ContextEGL_UWP : public ContextGL {
+class ContextEGL_UWP {
public:
enum Driver {
@@ -64,24 +63,24 @@ private:
Driver driver;
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 void set_use_vsync(bool use) { vsync = use; }
- virtual bool is_using_vsync() const { return vsync; }
+ void set_use_vsync(bool use) { vsync = use; }
+ bool is_using_vsync() const { return vsync; }
- virtual Error initialize();
+ Error initialize();
void reset();
void cleanup();
ContextEGL_UWP(CoreWindow ^ p_window, Driver p_driver);
- virtual ~ContextEGL_UWP();
+ ~ContextEGL_UWP();
};
#endif // CONTEXT_EGL_UWP_H