render.DrawQuad

From GMod Wiki

Jump to: navigation, search
Function
Syntax render.DrawQuad( Vector position, Vector position, Vector position, Vector position )
Where is this used?
Description:
Used to draw a four sided, 2 dimensional object, on the client's screens.
Returns: nil
Part of Library: render
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Render.DrawQuad]Render.DrawQuad [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDraw a rect on the front side of an entity to make a scripted entity barrier
Used onNewerClient.png
Code
 
pos = ent:GetPos()
render.DrawQuad(pos+Vector(-16, 128, 64), pos+Vector(-16, -128, 64), pos+Vector(-16, -128, -64), pos+Vector(-16, 128, -64))
 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox