You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Set the viewport area (transformation from normalized device coordinates to window coordinates)
Parameters
Parameter
Default Value
Note
x
y
width
height
Return value
None.
Notes
Example
// Draw to the left half of the screenraylib.rlViewport0, 0, 400, 600// Draw to the right half of the screenraylib.rlViewport400, 0, 400, 600// Restore full viewportraylib.rlViewport0, 0, 800, 600