Garry's Mod Wiki

Revision Difference

2D_Rendering_Functions#544185

<cat>Dev</cat> This page lists all 2D rendering functions. These functions will only work when a <page text="2D rendering context">2D Rendering Hooks</page> is available. Rendering context is only available in the current frame, so you cannot draw things from a timer. <note>The list is not generated automatically, some information may be missed</note> # See also <page>cam.Start2D</page> <page>2D Rendering Hooks</page> <page>3D Rendering Functions</page> <page>Render Order</page> # Hooks ⤶ # Functions⤶ - <page>draw.DrawText</page> - <page>draw.GetFontHeight</page> - <page>draw.NoTexture</page> - <page>draw.RoundedBox</page> - <page>draw.RoundedBoxEx</page> - <page>draw.SimpleText</page> - <page>draw.SimpleTextOutlined</page> - <page>draw.Text</page> - <page>draw.TextShadow</page> - <page>draw.TexturedQuad</page> - <page>draw.WordBox</page> - <page>render.DrawScreenQuad</page> - <page>render.DrawScreenQuadEx</page> - <page>render.DrawTextureToScreen</page> - <page>render.DrawTextureToScreenRect</page> - <page>render.SetLightmapTexture</page> - <page>render.SetMaterial</page> - <page>surface.DrawCircle</page> - <page>surface.DrawLine</page> - <page>surface.DrawOutlinedRect</page> - <page>surface.DrawPoly</page> - <page>surface.DrawRect</page> - <page>surface.DrawText</page> - <page>surface.DrawTexturedRect</page> - <page>surface.DrawTexturedRectRotated</page> - <page>surface.DrawTexturedRectUV</page>