diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-10-02 15:18:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 15:18:03 +0200 |
commit | 0d07a935e90eea0f652448784ea9cf6542593912 (patch) | |
tree | 593efc8b2d5307f92d6ecbe0b341c7d9d35d1d24 /modules/arkit/arkit_interface.h | |
parent | e2e20ae41bd9f1828f0a4812c4b95aaf3a7eeb5b (diff) | |
parent | 6ee74de9eeb6ff0fdcad81955bd989e793625edc (diff) |
Merge pull request #42503 from naithar/feature/ios-cleanup-arc
[4.0] [iOS] Switch to ARC. Refactoring and cleanup.
Diffstat (limited to 'modules/arkit/arkit_interface.h')
-rw-r--r-- | modules/arkit/arkit_interface.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/arkit/arkit_interface.h b/modules/arkit/arkit_interface.h index 5a2c50e213..29e09411ff 100644 --- a/modules/arkit/arkit_interface.h +++ b/modules/arkit/arkit_interface.h @@ -44,6 +44,15 @@ // forward declaration for some needed objects class ARKitShader; +#ifdef __OBJC__ + +typedef ARAnchor GodotARAnchor; + +#else + +typedef void GodotARAnchor; +#endif + class ARKitInterface : public XRInterface { GDCLASS(ARKitInterface, XRInterface); @@ -115,8 +124,8 @@ public: virtual void process() override; // called by delegate (void * because C++ and Obj-C don't always mix, should really change all platform/iphone/*.cpp files to .mm) - void _add_or_update_anchor(void *p_anchor); - void _remove_anchor(void *p_anchor); + void _add_or_update_anchor(GodotARAnchor *p_anchor); + void _remove_anchor(GodotARAnchor *p_anchor); ARKitInterface(); ~ARKitInterface(); |