draw.TexturedQuad

From GMod Wiki

Jump to: navigation, search
Function
Syntax draw.TexturedQuad( Table values )
Where is this used?
Description:
Draws a quad represented by a table of values (see Additional Notes below for details on these values)
Returns: nil
Part of Library: Draw
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Draw.TexturedQuad]Draw.TexturedQuad [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDraws a square texture.
Used onNewerClient.png
Code
draw.TexturedQuad
{
	texture = surface.GetTextureID "gui/gradient",
	color = Color(10, 10, 10, 120),
	x = 50,
	y = 50,
	w = ScrW() - 50,
	h = ScrH() - 50
}
OutputN/A


Additional Notes

Table Values

Silkicons

These things are little icons that can help you with making VGUI stuff. They are drawn with this function. There's a list of them here.

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox