Revision Difference
draw.TexturedQuad#515416
<function name="TexturedQuad" parent="draw" type="libraryfunc">⤶
<description>⤶
Draws a texture with a table structure.⤶
⤶
<rendercontext hook="false" type="2D"/>⤶
</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>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>