diff options
author | Sebastian Hartte <sebastian@hartte.de> | 2019-03-14 21:40:30 +0100 |
---|---|---|
committer | Sebastian Hartte <sebastian@hartte.de> | 2019-04-06 17:52:52 +0200 |
commit | 3a8c6db513ad54970d4324d9e2b3948db69e0ab0 (patch) | |
tree | f216e29548a7233ab70c9f9936b4ec7dedc789af /platform/x11 | |
parent | cc3e660d7e13665fd5242502fb677d3e5f30ec18 (diff) |
Remove ContextGL since as an abstraction it's unused.
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/context_gl_x11.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/platform/x11/context_gl_x11.h b/platform/x11/context_gl_x11.h index 02455ce005..46420df48b 100644 --- a/platform/x11/context_gl_x11.h +++ b/platform/x11/context_gl_x11.h @@ -39,13 +39,12 @@ #if defined(OPENGL_ENABLED) #include "core/os/os.h" -#include "drivers/gl_context/context_gl.h" #include <X11/Xlib.h> #include <X11/extensions/Xrender.h> struct ContextGL_X11_Private; -class ContextGL_X11 : public ContextGL { +class ContextGL_X11 { public: enum ContextType { @@ -67,19 +66,19 @@ private: ContextType context_type; public: - virtual void release_current(); - virtual void make_current(); - virtual void swap_buffers(); - virtual int get_window_width(); - virtual int get_window_height(); + void release_current(); + void make_current(); + void swap_buffers(); + int get_window_width(); + int get_window_height(); - 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_X11(::Display *p_x11_display, ::Window &p_x11_window, const OS::VideoMode &p_default_video_mode, ContextType p_context_type); - virtual ~ContextGL_X11(); + ~ContextGL_X11(); }; #endif |