aboutsummaryrefslogtreecommitdiff
path: root/core/bind/core_bind.cpp
diff options
context:
space:
mode:
authormarynate2014-02-19 23:35:39 +0800
committermarynate2014-03-18 18:00:18 +0800
commitc0547f5691c9293f82f6713d18b344524146441a (patch)
treeb9af649946085f4e6f900fcf525dc2ec725a35a3 /core/bind/core_bind.cpp
parente20e3c9525c2f0d5bb95e85138a8d88a0088d439 (diff)
downloadgodot-c0547f5691c9293f82f6713d18b344524146441a.tar.gz
godot-c0547f5691c9293f82f6713d18b344524146441a.tar.zst
godot-c0547f5691c9293f82f6713d18b344524146441a.zip
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r--core/bind/core_bind.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp
index 28906354a..1b4ca8151 100644
--- a/core/bind/core_bind.cpp
+++ b/core/bind/core_bind.cpp
@@ -199,6 +199,14 @@ int _OS::get_iterations_per_second() const {
}
+void _OS::set_target_fps(int p_fps) {
+ OS::get_singleton()->set_target_fps(p_fps);
+}
+
+float _OS::get_target_fps() const {
+ return OS::get_singleton()->get_target_fps();
+}
+
void _OS::set_low_processor_usage_mode(bool p_enabled) {
OS::get_singleton()->set_low_processor_usage_mode(p_enabled);
@@ -537,6 +545,8 @@ void _OS::_bind_methods() {
ObjectTypeDB::bind_method(_MD("set_iterations_per_second","iterations_per_second"),&_OS::set_iterations_per_second);
ObjectTypeDB::bind_method(_MD("get_iterations_per_second"),&_OS::get_iterations_per_second);
+ ObjectTypeDB::bind_method(_MD("set_target_fps","target_fps"),&_OS::set_target_fps);
+ ObjectTypeDB::bind_method(_MD("get_target_fps"),&_OS::get_target_fps);
ObjectTypeDB::bind_method(_MD("has_touchscreen_ui_hint"),&_OS::has_touchscreen_ui_hint);