summaryrefslogtreecommitdiff
path: root/modules/arkit/arkit_interface.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-10-02 15:18:03 +0200
committerGitHub <noreply@github.com>2020-10-02 15:18:03 +0200
commit0d07a935e90eea0f652448784ea9cf6542593912 (patch)
tree593efc8b2d5307f92d6ecbe0b341c7d9d35d1d24 /modules/arkit/arkit_interface.h
parente2e20ae41bd9f1828f0a4812c4b95aaf3a7eeb5b (diff)
parent6ee74de9eeb6ff0fdcad81955bd989e793625edc (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.h13
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();