Revision Difference
draw.TexturedQuad#524613
<function name="TexturedQuad" parent="draw" type="libraryfunc">
<description>
Draws a texture with a table structure.
<rendercontext hook="false" type="2D"/>⤶
<rendercontext hook="false" type="2D"></rendercontext>⤶
</description>
<realm>Client and Menu</realm>
<file line="288-L300">lua/includes/modules/draw.lua</file>
<args>
<arg name="texturedata" type="table">The texture properties. See <page>Structures/TextureData</page></arg>
</args>
</function>
<example>
<description>Example usage</description>
<code>
local TexturedQuadStructure = {
texture = surface.GetTextureID( 'phoenix_storms/amraam' ),
color = Color( 255, 0, 255, 255 ),
x = 0,
y = 0,
w = 512,
h = 512
}
draw.TexturedQuad( TexturedQuadStructure )
</code>
<output>Renders the texture.</output>
</example>