Category: 2D Overlay
Syntax:
b2dClearClipRect:Void()
None.
Void
Removes the clip region, so drawing covers the whole target again.
Takes no parameters.
Returns nothing.
Clears whatever rectangle b2dSetClipRect established. Draws made after this are
no longer scissored. Calling it when no clip is set is harmless.
The clip is also cleared automatically at the start of each frame, so this is
about releasing it partway through one rather than about tidying up at the end.
View detailed documentation online
b2dSetClipRect(100, 100, 200, 120)
b2dDrawRect(0, 0, 640, 480, 1) ; only the clip window is painted
b2dClearClipRect()
b2dDrawText("HUD", 8, 8, 0, font) ; unclipped again
BambooBasic © 2026 Michael Denathorn