Garry's Mod Wiki

render.DrawScreenQuad

render.DrawScreenQuad()

Description

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

See also render.DrawScreenQuadEx.

This is a rendering function that requires a 2d rendering context.

This means that it will only work in 2d Rendering Hooks.

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 )

Page Links


Special Pages


Wikis

?

Render Time: 34ms

Session 0
DB GetPage 3
Generate Html 3
SaveChanges 12
Render Body 0
Render Sidebar 13