-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.BeginScissorMode
JoeStrout edited this page Apr 29, 2026
·
3 revisions
Begin scissor mode (define screen area for following drawing) NOTE: Scissor rec refers to bottom-left corner, changing it to upper-left
| Parameter | Default Value | Note |
|---|---|---|
| x | ||
| y | ||
| width | ||
| height |
None.
raylib.BeginDrawing
raylib.ClearBackground raylib.RAYWHITE
raylib.BeginScissorMode 100, 100, 400, 300
// only pixels inside [100,100,400,300] are drawn
raylib.DrawRectangle 0, 0, 800, 600, raylib.RED
raylib.EndScissorMode
raylib.EndDrawing