Garry's Mod Wiki

Revision Difference

2D_Rendering_Functions#561131

<cat>Dev.Ref</cat> This page lists all **2D** rendering functions. These functions will only work when a 2D rendering context (see <page>2D Rendering Hooks</page>) 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> ⤶ # Functions⤶ ⤶ all of the <page>surface</page> library⤶ ⤶ all of the <page>draw</page> library⤶ ⤶ all of the <page>render</page> library⤶ ⤶ ⤶ ⤶ # See Related⤶ # See Related⤶ <page>2D Rendering Hooks</page> <page>Render Order</page> <page>cam.Start2D</page> <page>3D Rendering Functions</page> ⤶ ⤶ ⤶ # 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>⤶