DisableClipping

From Garry's Mod
Jump to: navigation, search
 DisableClipping( )

Contents

Description

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

See also surface.DisableClipping and Panel:NoClipping.

Arguments

boolean disable

Whether or not clipping should be disabled

Examples

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


Personal tools
Navigation