Garry's Mod Wiki

draw.TexturedQuad

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 Structures/TextureData.

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.

Special Pages


Wikis

?

Render Time: 21ms

DB GetPage 2
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 7