vsnc --> vsync
This commit is contained in:
parent
cdc4664226
commit
b5c383fd61
9 changed files with 11 additions and 11 deletions
|
@ -480,9 +480,9 @@ void _OS::set_use_vsync(bool p_enable) {
|
||||||
OS::get_singleton()->set_use_vsync(p_enable);
|
OS::get_singleton()->set_use_vsync(p_enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool _OS::is_vsnc_enabled() const {
|
bool _OS::is_vsync_enabled() const {
|
||||||
|
|
||||||
return OS::get_singleton()->is_vsnc_enabled();
|
return OS::get_singleton()->is_vsync_enabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1172,7 +1172,7 @@ void _OS::_bind_methods() {
|
||||||
ObjectTypeDB::bind_method(_MD("set_thread_name","name"),&_OS::set_thread_name);
|
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("set_use_vsync","enable"),&_OS::set_use_vsync);
|
||||||
ObjectTypeDB::bind_method(_MD("is_vsnc_enabled"),&_OS::is_vsnc_enabled);
|
ObjectTypeDB::bind_method(_MD("is_vsync_enabled"),&_OS::is_vsync_enabled);
|
||||||
|
|
||||||
ObjectTypeDB::bind_method(_MD("get_engine_version"),&_OS::get_engine_version);
|
ObjectTypeDB::bind_method(_MD("get_engine_version"),&_OS::get_engine_version);
|
||||||
|
|
||||||
|
|
|
@ -318,7 +318,7 @@ public:
|
||||||
Error set_thread_name(const String& p_name);
|
Error set_thread_name(const String& p_name);
|
||||||
|
|
||||||
void set_use_vsync(bool p_enable);
|
void set_use_vsync(bool p_enable);
|
||||||
bool is_vsnc_enabled() const;
|
bool is_vsync_enabled() const;
|
||||||
|
|
||||||
Dictionary get_engine_version() const;
|
Dictionary get_engine_version() const;
|
||||||
|
|
||||||
|
|
|
@ -542,7 +542,7 @@ void OS::set_use_vsync(bool p_enable) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OS::is_vsnc_enabled() const{
|
bool OS::is_vsync_enabled() const{
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -431,7 +431,7 @@ public:
|
||||||
virtual void set_context(int p_context);
|
virtual void set_context(int p_context);
|
||||||
|
|
||||||
virtual void set_use_vsync(bool p_enable);
|
virtual void set_use_vsync(bool p_enable);
|
||||||
virtual bool is_vsnc_enabled() const;
|
virtual bool is_vsync_enabled() const;
|
||||||
|
|
||||||
Dictionary get_engine_version() const;
|
Dictionary get_engine_version() const;
|
||||||
|
|
||||||
|
|
|
@ -24152,7 +24152,7 @@
|
||||||
Return true if the window is resizable.
|
Return true if the window is resizable.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_vsnc_enabled" qualifiers="const">
|
<method name="is_vsync_enabled" qualifiers="const">
|
||||||
<return type="bool">
|
<return type="bool">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
|
|
|
@ -2388,7 +2388,7 @@ void OS_Windows::set_use_vsync(bool p_enable) {
|
||||||
gl_context->set_use_vsync(p_enable);
|
gl_context->set_use_vsync(p_enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OS_Windows::is_vsnc_enabled() const{
|
bool OS_Windows::is_vsync_enabled() const{
|
||||||
|
|
||||||
if (gl_context)
|
if (gl_context)
|
||||||
return gl_context->is_using_vsync();
|
return gl_context->is_using_vsync();
|
||||||
|
|
|
@ -295,7 +295,7 @@ public:
|
||||||
virtual String get_joy_guid(int p_device) const;
|
virtual String get_joy_guid(int p_device) const;
|
||||||
|
|
||||||
virtual void set_use_vsync(bool p_enable);
|
virtual void set_use_vsync(bool p_enable);
|
||||||
virtual bool is_vsnc_enabled() const;
|
virtual bool is_vsync_enabled() const;
|
||||||
|
|
||||||
OS_Windows(HINSTANCE _hInstance);
|
OS_Windows(HINSTANCE _hInstance);
|
||||||
~OS_Windows();
|
~OS_Windows();
|
||||||
|
|
|
@ -1951,7 +1951,7 @@ void OS_X11::set_use_vsync(bool p_enable) {
|
||||||
return context_gl->set_use_vsync(p_enable);
|
return context_gl->set_use_vsync(p_enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OS_X11::is_vsnc_enabled() const {
|
bool OS_X11::is_vsync_enabled() const {
|
||||||
|
|
||||||
if (context_gl)
|
if (context_gl)
|
||||||
return context_gl->is_using_vsync();
|
return context_gl->is_using_vsync();
|
||||||
|
|
|
@ -264,7 +264,7 @@ public:
|
||||||
virtual void set_context(int p_context);
|
virtual void set_context(int p_context);
|
||||||
|
|
||||||
virtual void set_use_vsync(bool p_enable);
|
virtual void set_use_vsync(bool p_enable);
|
||||||
virtual bool is_vsnc_enabled() const;
|
virtual bool is_vsync_enabled() const;
|
||||||
|
|
||||||
void run();
|
void run();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue