Garry's Mod Wiki

Revision Difference

Panel:DrawTexturedRect#550723

<function name="DrawTexturedRect" parent="Panel" type="classfunc"> <description>Draws a textured rectangle to fill the panel object this method is called on. The texture is set using <page>surface.SetTexture</page> or <page>surface.SetMaterial</page>. This should only be called within the object's <page>PANEL:Paint</page> or <page>PANEL:PaintOver</page> hooks, as a shortcut for <page>surface.DrawTexturedRect</page>.</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ </function>