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

Example

Example usage

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.

Page Links


Special Pages


Wikis

?

Render Time: 91ms

DB GetPage 59
Generate Html 8
SaveChanges (1) 9
Render Body 0
Render Sidebar 13