diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-05 19:14:33 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-05 19:14:33 -0300 |
commit | 2420e46b449f4c8acdfe48c765ea52fc3e860de7 (patch) | |
tree | a49df7158f20ee6dca044c8ff7d7e81c13d83073 /drivers/gl_context | |
parent | 684a1207c0a08889be7024d5851c224877557053 (diff) |
vsync support
-works on windows
-may not work on X11, if so please fix
-OSX does not seem to support disabling vsync
Diffstat (limited to 'drivers/gl_context')
-rw-r--r-- | drivers/gl_context/context_gl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gl_context/context_gl.h b/drivers/gl_context/context_gl.h index 1ea3662ada..fd3bbee5de 100644 --- a/drivers/gl_context/context_gl.h +++ b/drivers/gl_context/context_gl.h @@ -52,7 +52,11 @@ public: virtual void swap_buffers()=0; virtual Error initialize()=0; - + + virtual void set_use_vsync(bool p_use)=0; + virtual bool is_using_vsync() const=0; + + ContextGL(); |