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() local old = DisableClipping( true ) draw.RoundedBox( 0, -50, -50, 25, 25, color_white ) DisableClipping( old ) end

Page Links


Special Pages


Wikis

?

Render Time: 72ms

DB GetPage 37
Generate Html 2
SaveChanges (1) 18
Render Body 0
Render Sidebar 12