Skip to content

raylib.rlOrtho

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Multiply the current matrix by an orthographic matrix generated by parameters

Parameters

Parameter Default Value Note
left
right
bottom
top
znear
zfar

Return value

None.

Notes

Example

raylib.rlMatrixMode 5889  // RL_PROJECTION (0x1701)
raylib.rlLoadIdentity
raylib.rlOrtho 0, 800, 600, 0, -1, 1
raylib.rlMatrixMode 5888  // RL_MODELVIEW (0x1700)

Clone this wiki locally