Skip to content

Commit

Permalink
godot-core: builtin: reimplement Rect2i to reduce need of inner usage
Browse files Browse the repository at this point in the history
  • Loading branch information
yannick-was-taken committed Apr 7, 2023
1 parent e3b9ad1 commit 09fcd03
Show file tree
Hide file tree
Showing 11 changed files with 618 additions and 18 deletions.
5 changes: 3 additions & 2 deletions godot-core/src/builtin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ mod real_mod {
/// A 4-dimensional vector from [`glam`]. Using a floating-point format compatible with [`real`].
pub type RVec4 = glam::Vec4;

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

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

0 comments on commit 09fcd03

Please sign in to comment.