render.DrawScreenQuad

From Garry's Mod
Jump to: navigation, search
 render.DrawScreenQuad( )

Description

Draws the the current material set by render.SetMaterial to the whole screen. The color cannot be customized.

See also render.DrawScreenQuadEx.

NOTE

This is a rendering function that requires a 2D rendering context.
This means that it will only work in hooks with a 2D rendering context.

Examples

Example

Example usage, draws a wireframe texture onto the entire screen.

local ourMat = Material( "models/wireframe" )

hook.Add( "HUDPaint", "example_hook", function()
	render.SetMaterial( ourMat )
	render.DrawScreenQuad()
end )


Personal tools
Navigation