Garry's Mod Wiki

DisableClipping

boolean DisableClipping( boolean disable )

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
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: 40ms

DB GetPage 7
Generate Html 7
SaveChanges (1) 11
Render Body 0
Render Sidebar 12