Garry's Mod Wiki

DisableClipping

Description

Sets whether rendering should be limited to being inside a panel or not.

See also Panel:NoClipping.

Arguments

1 boolean disable
Whether or not clipping should be disabled

Returns

1 boolean oldState
Next update

Whether the clipping was enabled or not before this function call

Example

Renders a white box outside of the panel

function PANEL:Paint() DisableClipping(true) draw.RoundedBox(0, -50, -50, 25, 25, color_white) DisableClipping(false) end

Page Links


Special Pages


Wikis

?

Render Time: 44ms

Session 0
DB GetPage 3
Generate Html 7
SaveChanges 20
Render Body 0
Render Sidebar 12