Skip to content

Commit e7c72a8

Browse files
godot-core: builtin: reimplement Rect2i to reduce need of inner usage
1 parent 096eccd commit e7c72a8

File tree

13 files changed

+628
-35
lines changed

13 files changed

+628
-35
lines changed

godot-core/src/builtin/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ mod real_mod {
212212
/// A 4-dimensional vector from [`glam`]. Using a floating-point format compatible with [`real`].
213213
pub type RVec4 = glam::Vec4;
214214

215-
/// A 2x2 column-major matrix from [`glam`]. Using a floating-point format compatible with [`real`].
215+
/// A 2x2 column-major matrix from [`glam`]. Using a floating-point format compatible with [`real`].
216216
pub type RMat2 = glam::Mat2;
217217
/// A 3x3 column-major matrix from [`glam`]. Using a floating-point format compatible with [`real`].
218218
pub type RMat3 = glam::Mat3;
@@ -279,7 +279,7 @@ mod real_mod {
279279
/// A 4-dimensional vector from [`glam`]. Using a floating-point format compatible with [`real`].
280280
pub type RVec4 = glam::DVec4;
281281

282-
/// A 2x2 column-major matrix from [`glam`]. Using a floating-point format compatible with [`real`].
282+
/// A 2x2 column-major matrix from [`glam`]. Using a floating-point format compatible with [`real`].
283283
pub type RMat2 = glam::DMat2;
284284
/// A 3x3 column-major matrix from [`glam`]. Using a floating-point format compatible with [`real`].
285285
pub type RMat3 = glam::DMat3;
@@ -330,6 +330,7 @@ macro_rules! real {
330330
/// The side of a [`Rect2`] or [`Rect2i`].
331331
///
332332
/// _Godot equivalent: `@GlobalScope.Side`_
333+
#[derive(Copy, Clone)]
333334
#[repr(C)]
334335
pub enum RectSide {
335336
Left = 0,

0 commit comments

Comments
 (0)