Use forward declares for vector math types
Adds operators to convert from int vector types to float vector types as done in the upstream engine implementations.
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
|
||||
namespace godot {
|
||||
|
||||
class Rect2i;
|
||||
class String;
|
||||
class Transform2D;
|
||||
|
||||
class Rect2 {
|
||||
@@ -326,6 +328,7 @@ public:
|
||||
}
|
||||
|
||||
operator String() const;
|
||||
operator Rect2i() const;
|
||||
|
||||
Rect2() {}
|
||||
Rect2(real_t p_x, real_t p_y, real_t p_width, real_t p_height) :
|
||||
|
||||
Reference in New Issue
Block a user