Skip to content

raylib.MatrixOrtho

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get orthographic projection matrix

Parameters

Parameter Default Value Note
left -1
right 1
bottom -1
top 1
nearPlane 0.01
farPlane 1000

Return value

Condition Return Value
(always) map

Notes

Example

// Orthographic projection for a 2D view covering 0-800 x 0-600
proj = raylib.MatrixOrtho(0, 800, 600, 0, -1, 1)

Clone this wiki locally