# Sandbox.Rendering.HudPainter

2D Drawing functions for a [Sandbox.Rendering.CommandList](/api/Sandbox.Rendering.CommandList).
`HudPainter` provides a set of methods for drawing shapes, textures, and text onto a command list, typically for HUD or UI rendering.

- Kind: struct
- Namespace: `Sandbox.Rendering`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`HudPainter`](/api/Sandbox.Rendering.HudPainter/.ctor): Initializes a new instance of the [Sandbox.Rendering.HudPainter](/api/Sandbox.Rendering.HudPainter) struct for the specified `commandList`.

## Fields

- [`list`](/api/Sandbox.Rendering.HudPainter/list): The underlying [Sandbox.Rendering.CommandList](/api/Sandbox.Rendering.CommandList) used for rendering.

## Methods

- [`DrawCircle`](/api/Sandbox.Rendering.HudPainter/DrawCircle): Draws a filled circle at the specified position and size.
- [`DrawLine`](/api/Sandbox.Rendering.HudPainter/DrawLine): Draws a line between two points with the specified width and color.
- [`DrawRect`](/api/Sandbox.Rendering.HudPainter/DrawRect): Draws a rectangle with optional corner radius and border.
- [`DrawText`](/api/Sandbox.Rendering.HudPainter/DrawText): Draws text at a 3D point with the specified size, color, and alignment flags.
- [`DrawTexture`](/api/Sandbox.Rendering.HudPainter/DrawTexture): Draws a texture in the specified rectangle with a white tint.
- [`SetBlendMode`](/api/Sandbox.Rendering.HudPainter/SetBlendMode): Sets the blend mode for subsequent drawing operations.
- [`SetMatrix`](/api/Sandbox.Rendering.HudPainter/SetMatrix): Sets the transformation matrix for subsequent drawing operations.
