-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.MatrixOrtho
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get orthographic projection matrix
| Parameter | Default Value | Note |
|---|---|---|
| left | -1 | |
| right | 1 | |
| bottom | -1 | |
| top | 1 | |
| nearPlane | 0.01 | |
| farPlane | 1000 |
| Condition | Return Value |
|---|---|
| (always) | map |
// Orthographic projection for a 2D view covering 0-800 x 0-600
proj = raylib.MatrixOrtho(0, 800, 600, 0, -1, 1)