diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-02-19 16:47:24 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-02-19 16:47:24 +0100 |
commit | e031aa06ee37fb9bdaab63fdb2f0dabebcdbd3c2 (patch) | |
tree | 6458311b1244291e141c713a1465629a75acabef /modules/gdnative | |
parent | 6a51999b7f4d9f7b1f950d7a655a464f28542318 (diff) |
Core: Use forward declares for Vector3/Vector3i
Add add Vector3 operator in Vector3i.
Diffstat (limited to 'modules/gdnative')
-rw-r--r-- | modules/gdnative/gdnative/aabb.cpp | 1 | ||||
-rw-r--r-- | modules/gdnative/gdnative/plane.cpp | 1 | ||||
-rw-r--r-- | modules/gdnative/gdnative/vector3.cpp | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative/aabb.cpp b/modules/gdnative/gdnative/aabb.cpp index 82aa7215b2..b8909433cc 100644 --- a/modules/gdnative/gdnative/aabb.cpp +++ b/modules/gdnative/gdnative/aabb.cpp @@ -31,6 +31,7 @@ #include "gdnative/aabb.h" #include "core/math/aabb.h" +#include "core/os/memory.h" static_assert(sizeof(godot_aabb) == sizeof(AABB), "AABB size mismatch"); diff --git a/modules/gdnative/gdnative/plane.cpp b/modules/gdnative/gdnative/plane.cpp index 9ac5cfb3b7..41fa0da5db 100644 --- a/modules/gdnative/gdnative/plane.cpp +++ b/modules/gdnative/gdnative/plane.cpp @@ -31,6 +31,7 @@ #include "gdnative/plane.h" #include "core/math/plane.h" +#include "core/os/memory.h" static_assert(sizeof(godot_plane) == sizeof(Plane), "Plane size mismatch"); diff --git a/modules/gdnative/gdnative/vector3.cpp b/modules/gdnative/gdnative/vector3.cpp index 26e94d7e5c..37c88c3cca 100644 --- a/modules/gdnative/gdnative/vector3.cpp +++ b/modules/gdnative/gdnative/vector3.cpp @@ -31,6 +31,8 @@ #include "gdnative/vector3.h" #include "core/math/vector3.h" +#include "core/math/vector3i.h" +#include "core/os/memory.h" static_assert(sizeof(godot_vector3) == sizeof(Vector3), "Vector3 size mismatch"); static_assert(sizeof(godot_vector3i) == sizeof(Vector3i), "Vector3i size mismatch"); |