Revision Difference
render.DrawScreenQuad#524647
<function name="DrawScreenQuad" parent="render" type="libraryfunc">
<description>
Draws the current material set by <page>render.SetMaterial</page> to the whole screen. The color cannot be customized.
See also <page>render.DrawScreenQuadEx</page>.
<rendercontext hook="false" type="2D"/>⤶
<rendercontext hook="false" type="2D"></rendercontext>⤶
</description>
<realm>Client</realm>
</function>
<example>
<description>Example usage, draws a wireframe texture onto the entire screen.</description>
<code>
local ourMat = Material( "models/wireframe" )
hook.Add( "HUDPaint", "example_hook", function()
render.SetMaterial( ourMat )
render.DrawScreenQuad()
end )
</code>
</example>