Garry's Mod Wiki

Revision Difference

Global.DisableClipping#523654

<function name="DisableClipping" parent="Global" type="libraryfunc"> <description> Sets whether rendering should be limited to being inside a panel or not. See also <page>surface.DisableClipping</page> and <page>Panel:NoClipping</page>. See also <page>Panel:NoClipping</page>. </description> <realm>Client and Menu</realm> <args> <arg name="disable" type="boolean">Whether or not clipping should be disabled</arg> </args> </function> <example> <description>Renders a white box outside of the panel</description> <code> function PANEL:Paint() DisableClipping(true) draw.RoundedBox(0, -50, -50, 25, 25, color_white) DisableClipping(false) end </code> </example>