Garry's Mod Wiki

Revision Difference

render.DrawTextureToScreenRect#552107

<function name="DrawTextureToScreenRect" parent="render" type="libraryfunc"> <description> Draws a textured rectangle. <rendercontext hook="false" type="2D"></rendercontext> </description> <realm>Client</realm> <file line="158">lua/includes/extensions/client/render.lua</file> <file line="158-L166">lua/includes/extensions/client/render.lua</file> <args> <arg name="tex" type="ITexture">The texture to draw</arg> <arg name="x" type="number">The x coordinate of the rectangle to draw.</arg> <arg name="y" type="number">The y coordinate of the rectangle to draw.</arg> <arg name="width" type="number">The width of the rectangle to draw.</arg> <arg name="height" type="number">The height of the rectangle to draw.</arg> </args> </function>