summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-02-04 13:28:02 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-02-04 14:17:30 +0100
commit5f56d385b04f4054ec86605fcda56ffeed4ca5f4 (patch)
treef606c9f62240abfd7c30c2916b9f096c032649a3 /modules
parent89eb6d372d83f0e79ff7bcc78c304a37bed72abe (diff)
Core: Move Rect2i to its own `rect2i.h` header
And take the opportunity to improve interdependencies a bit with forward declares where possible.
Diffstat (limited to 'modules')
-rw-r--r--modules/gdnative/gdnative/rect2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative/rect2.cpp b/modules/gdnative/gdnative/rect2.cpp
index f4674850e3..f836cb7486 100644
--- a/modules/gdnative/gdnative/rect2.cpp
+++ b/modules/gdnative/gdnative/rect2.cpp
@@ -31,6 +31,7 @@
#include "gdnative/rect2.h"
#include "core/math/rect2.h"
+#include "core/math/rect2i.h"
static_assert(sizeof(godot_rect2) == sizeof(Rect2), "Rect2 size mismatch");
static_assert(sizeof(godot_rect2i) == sizeof(Rect2i), "Rect2i size mismatch");