Garry's Mod Wiki

draw.TexturedQuad

  draw.TexturedQuad( table texturedata )

Description

Draws a texture with a table structure.

This is a rendering function that requires a 2d rendering context.

This means that it will only work in 2d Rendering Hooks.

Arguments

1 table texturedata
The texture properties. See TextureData structure.

Example

Example usage with a random texture.

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 )
Output: Renders the texture.