diff options
| author | Juan Linietsky | 2016-06-05 19:14:33 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-06-05 19:14:33 -0300 |
| commit | 2420e46b449f4c8acdfe48c765ea52fc3e860de7 (patch) | |
| tree | a49df7158f20ee6dca044c8ff7d7e81c13d83073 /core/bind/core_bind.cpp | |
| parent | 684a1207c0a08889be7024d5851c224877557053 (diff) | |
| download | godot-2420e46b449f4c8acdfe48c765ea52fc3e860de7.tar.gz godot-2420e46b449f4c8acdfe48c765ea52fc3e860de7.tar.zst godot-2420e46b449f4c8acdfe48c765ea52fc3e860de7.zip | |
Diffstat (limited to 'core/bind/core_bind.cpp')
| -rw-r--r-- | core/bind/core_bind.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index addc26525..31c0c0e20 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -436,6 +436,15 @@ Error _OS::set_thread_name(const String& p_name) { return Thread::set_name(p_name); }; +void _OS::set_use_vsync(bool p_enable) { + OS::get_singleton()->set_use_vsync(p_enable); +} + +bool _OS::is_vsnc_enabled() const { + + return OS::get_singleton()->is_vsnc_enabled(); +} + /* enum Weekday { @@ -1110,6 +1119,8 @@ void _OS::_bind_methods() { ObjectTypeDB::bind_method(_MD("set_thread_name","name"),&_OS::set_thread_name); + ObjectTypeDB::bind_method(_MD("set_use_vsync","enable"),&_OS::set_use_vsync); + ObjectTypeDB::bind_method(_MD("is_vsnc_enabled"),&_OS::is_vsnc_enabled); BIND_CONSTANT( DAY_SUNDAY ); BIND_CONSTANT( DAY_MONDAY ); |
