Revision Difference
render.DrawScreenQuad#512943
<function name="DrawScreenQuad" parent="render" type="libraryfunc">⤶
<description>⤶
Draws the 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"/>⤶
</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>