render.DrawScreenQuadEx
Description
Draws the the current material set by render.SetMaterial to the area specified. Color cannot be customized.
See also render.DrawScreenQuad.
This is a rendering function that requires a 2d rendering context.
This means that it will only work in 2d Rendering Hooks.
Arguments
Example
Example usage, draws a 256x256 rectangle with the wireframe material.
local ourMat = Material( "models/wireframe" )
hook.Add( "HUDPaint", "example_hook", function()
render.SetMaterial( ourMat )
render.DrawScreenQuadEx( 100, 100, 256, 256 )
end )