Core: Move Rect2i to its own rect2i.h header

And take the opportunity to improve interdependencies a bit with forward
declares where possible.
This commit is contained in:
Rémi Verschelde 2022-02-04 13:28:02 +01:00
parent 89eb6d372d
commit 5f56d385b0
No known key found for this signature in database
GPG key ID: C3336907360768E1
14 changed files with 635 additions and 495 deletions

View file

@ -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");