vsnc --> vsync

This commit is contained in:
ISylvox 2016-11-08 21:06:57 +07:00
parent cdc4664226
commit b5c383fd61
9 changed files with 11 additions and 11 deletions

View File

@ -480,9 +480,9 @@ void _OS::set_use_vsync(bool 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_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);

View File

@ -318,7 +318,7 @@ public:
Error set_thread_name(const String& p_name);
void set_use_vsync(bool p_enable);
bool is_vsnc_enabled() const;
bool is_vsync_enabled() const;
Dictionary get_engine_version() const;

View File

@ -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;
}

View File

@ -431,7 +431,7 @@ public:
virtual void set_context(int p_context);
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;

View File

@ -24152,7 +24152,7 @@
Return true if the window is resizable.
</description>
</method>
<method name="is_vsnc_enabled" qualifiers="const">
<method name="is_vsync_enabled" qualifiers="const">
<return type="bool">
</return>
<description>

View File

@ -2388,7 +2388,7 @@ void OS_Windows::set_use_vsync(bool 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)
return gl_context->is_using_vsync();

View File

@ -295,7 +295,7 @@ public:
virtual String get_joy_guid(int p_device) const;
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();

View File

@ -1951,7 +1951,7 @@ void OS_X11::set_use_vsync(bool 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)
return context_gl->is_using_vsync();

View File

@ -264,7 +264,7 @@ public:
virtual void set_context(int p_context);
virtual void set_use_vsync(bool p_enable);
virtual bool is_vsnc_enabled() const;
virtual bool is_vsync_enabled() const;
void run();