render.DrawQuadEasy

From GMod Wiki

Jump to: navigation, search
Function
Syntax render.DrawQuadEasy( Vector Position, Vector Direction, Integer Size x, Integer Size y, Color Color, Integer Rotation )
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.DrawQuadEasy]Render.DrawQuadEasy [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionDraws A sprite with size 128 at the origin facing downwards.
Used onNewerClient.png
Code
cam.Start3D(LocalPlayer():EyePos(),LocalPlayer():EyeAngles())
        render.SetMaterial( Material( "sprites/blueglow2" ) )
        render.DrawQuadEasy( Vector(0,0,0),    --position of the rect
        Vector(0,0,-1),        --direction to face in
        128, 128,              --size of the rect
        Color( 255, 255, 255, 255 ),  --color
        90                     --rotate 90 degrees
        ) 
    cam.End3D()
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox