Skip to content

Commit

Permalink
Consider matrices as Row-major instead
Browse files Browse the repository at this point in the history
Raylib actually stores matrices in row-major instead of column-major.
  • Loading branch information
TSnake41 committed Nov 10, 2023
1 parent 66cbb10 commit 2339e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raylib-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub use mint;
pub type Vector2 = mint::Vector2<f32>;
pub type Vector3 = mint::Vector3<f32>;
pub type Vector4 = mint::Vector4<f32>;
pub type Matrix = mint::ColumnMatrix4<f32>;
pub type Matrix = mint::RowMatrix4<f32>;
pub type Quaternion = mint::Quaternion<f32>;

include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
Expand Down

0 comments on commit 2339e6c

Please sign in to comment.