Functions | |
| constexpr Matrix< f32, 4, 4 > | ToGLSpace_View (const Matrix< f32, 4, 4 > &mat) |
| Converts a row-major view matrix to OpenGL column-major space. | |
| constexpr Matrix< f32, 4, 4 > | ToGLSpace_Projection (const Matrix< f32, 4, 4 > &mat) |
| Converts a row-major projection matrix to OpenGL column-major space. | |
| constexpr Matrix< f32, 4, 4 > | ToGLSpace_Object (const Matrix< f32, 4, 4 > &mat) |
| Converts an object/world matrix to OpenGL column-major space. | |
| constexpr Matrix< f32, 4, 4 > | FromGLSpace_Object (const Matrix< f32, 4, 4 > &mat) |
| Converts an OpenGL column-major object/world matrix back to Crux row-major space. | |
Converts an OpenGL column-major object/world matrix back to Crux row-major space.
Reverses the Z-axis flip and transposes the matrix, returning it to Crux’s internal coordinate system. Useful for taking the result from ImGuizmo and applying it to the engine.
| mat | The OpenGL column-major object/world matrix. |
Converts an object/world matrix to OpenGL column-major space.
Transposes the matrix and flips the Z axis to match OpenGL conventions, preparing it for manipulation with ImGuizmo or rendering.
| mat | The row-major object/world matrix. |
|
constexpr |
Converts a row-major projection matrix to OpenGL column-major space.
Transposes the matrix and flips the Y axis to match OpenGL’s clip space convention.
| mat | The row-major projection matrix. |
Converts a row-major view matrix to OpenGL column-major space.
Transposes the matrix to account for Crux's camera convention vs OpenGL’s coordinate system. This ensures the camera does not move incorrectly when passed to ImGuizmo or OpenGL.
| mat | The row-major view matrix. |