diff options
| author | BastiaanOlij <mux213@gmail.com> | 2017-11-04 11:50:05 +1100 |
|---|---|---|
| committer | Bastiaan Olij <mux213@gmail.com> | 2017-11-13 22:08:43 +1100 |
| commit | 9d3f8418ca252a4047b3818f16ed22228c1d0071 (patch) | |
| tree | 76524415f0affb0172b8437b96e7d0c51d8db389 /modules/gdnative/arvr | |
| parent | 2fce0010f0d0eb2476028ed62335508bceabd820 (diff) | |
| download | redot-engine-9d3f8418ca252a4047b3818f16ed22228c1d0071.tar.gz | |
Removed add/remove interface bindings and added get_interfaces
Diffstat (limited to 'modules/gdnative/arvr')
| -rw-r--r-- | modules/gdnative/arvr/arvr_interface_gdnative.cpp | 4 | ||||
| -rw-r--r-- | modules/gdnative/arvr/arvr_interface_gdnative.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdnative/arvr/arvr_interface_gdnative.cpp b/modules/gdnative/arvr/arvr_interface_gdnative.cpp index e2a7019fa4..02f2ee7424 100644 --- a/modules/gdnative/arvr/arvr_interface_gdnative.cpp +++ b/modules/gdnative/arvr/arvr_interface_gdnative.cpp @@ -166,11 +166,11 @@ void ARVRInterfaceGDNative::uninitialize() { interface->uninitialize(data); } -Size2 ARVRInterfaceGDNative::get_recommended_render_targetsize() { +Size2 ARVRInterfaceGDNative::get_render_targetsize() { ERR_FAIL_COND_V(interface == NULL, Size2()); - godot_vector2 result = interface->get_recommended_render_targetsize(data); + godot_vector2 result = interface->get_render_targetsize(data); Vector2 *vec = (Vector2 *)&result; return *vec; diff --git a/modules/gdnative/arvr/arvr_interface_gdnative.h b/modules/gdnative/arvr/arvr_interface_gdnative.h index e45b51e070..96f7b580d5 100644 --- a/modules/gdnative/arvr/arvr_interface_gdnative.h +++ b/modules/gdnative/arvr/arvr_interface_gdnative.h @@ -68,7 +68,7 @@ public: virtual void set_anchor_detection_is_enabled(bool p_enable); /** rendering and internal **/ - virtual Size2 get_recommended_render_targetsize(); + virtual Size2 get_render_targetsize(); virtual bool is_stereo(); virtual Transform get_transform_for_eye(ARVRInterface::Eyes p_eye, const Transform &p_cam_transform); |
