Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...