diff options
| author | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
| commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
| tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /platform/x11/context_gl_x11.h | |
| parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
| download | godot-5dbf180.tar.gz godot-5dbf180.tar.zst godot-5dbf180.zip | |
A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
Diffstat (limited to 'platform/x11/context_gl_x11.h')
| -rw-r--r-- | platform/x11/context_gl_x11.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/platform/x11/context_gl_x11.h b/platform/x11/context_gl_x11.h index efea70022..be0f4c822 100644 --- a/platform/x11/context_gl_x11.h +++ b/platform/x11/context_gl_x11.h @@ -36,10 +36,8 @@ #if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED) - - -#include "os/os.h" #include "drivers/gl_context/context_gl.h" +#include "os/os.h" #include <X11/Xlib.h> struct ContextGL_X11_Private; @@ -50,14 +48,14 @@ class ContextGL_X11 : public ContextGL { OS::VideoMode default_video_mode; //::Colormap x11_colormap; ::Display *x11_display; - ::Window& x11_window; + ::Window &x11_window; bool double_buffer; bool direct_render; - int glx_minor,glx_major; + int glx_minor, glx_major; bool opengl_3_context; bool use_vsync; -public: +public: virtual void release_current(); virtual void make_current(); virtual void swap_buffers(); @@ -69,9 +67,8 @@ 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, bool p_opengl_3_context); ~ContextGL_X11(); - }; #endif |
