aboutsummaryrefslogtreecommitdiff
path: root/platform/x11/context_gl_x11.h
diff options
context:
space:
mode:
authorRémi Verschelde2018-03-01 16:04:11 +0100
committerGitHub2018-03-01 16:04:11 +0100
commit29215b229bab093bd083af4099234cbffe4febfb (patch)
treebdd2fc1a9a678422b37513a83f9bd842de532145 /platform/x11/context_gl_x11.h
parent7f3024d343aa1b14641ad5a7b56efaa1501550cf (diff)
parenteac4c984dfe5eebb73b094aaf2ed5ab37b6e8fdf (diff)
downloadgodot-29215b2.tar.gz
godot-29215b2.tar.zst
godot-29215b2.zip
Merge pull request #16687 from karroffel/gles2-2d-pr
add GLES 2 renderer for 2D
Diffstat (limited to 'platform/x11/context_gl_x11.h')
-rw-r--r--platform/x11/context_gl_x11.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/platform/x11/context_gl_x11.h b/platform/x11/context_gl_x11.h
index c969f0044..b54cc84fa 100644
--- a/platform/x11/context_gl_x11.h
+++ b/platform/x11/context_gl_x11.h
@@ -46,6 +46,14 @@ struct ContextGL_X11_Private;
class ContextGL_X11 : public ContextGL {
+public:
+ enum ContextType {
+ OLDSTYLE,
+ GLES_2_0_COMPATIBLE,
+ GLES_3_0_COMPATIBLE
+ };
+
+private:
ContextGL_X11_Private *p;
OS::VideoMode default_video_mode;
//::Colormap x11_colormap;
@@ -54,8 +62,8 @@ class ContextGL_X11 : public ContextGL {
bool double_buffer;
bool direct_render;
int glx_minor, glx_major;
- bool opengl_3_context;
bool use_vsync;
+ ContextType context_type;
public:
virtual void release_current();
@@ -69,7 +77,7 @@ public:
virtual void set_use_vsync(bool p_use);
virtual bool is_using_vsync() const;
- ContextGL_X11(::Display *p_x11_display, ::Window &p_x11_window, const OS::VideoMode &p_default_video_mode, bool p_opengl_3_context);
+ ContextGL_X11(::Display *p_x11_display, ::Window &p_x11_window, const OS::VideoMode &p_default_video_mode, ContextType p_context_type);
~ContextGL_X11();
};