Summary
2D Drawing functions for a
Rendering.CommandList.
['c'] provides a set of methods for drawing shapes, textures, and text onto a command list, typically for HUD or UI rendering.
Constructors
HudPainter |
Initializes a new instance of the Sandbox.Rendering.HudPainter struct for the specified <paramref name="commandList" />. |
Fields
list |
The underlying Sandbox.Rendering.CommandList used for rendering. |
Methods
DrawCircle |
Draws a filled circle at the specified position and size. |
DrawLine |
Draws a line between two points with the specified width and color. |
DrawRect |
Draws a rectangle with optional corner radius and border. |
DrawText |
Draws text at a 3D point with the specified size, color, and alignment flags. |
DrawTexture |
Draws a texture in the specified rectangle with a white tint. |
SetBlendMode |
Sets the blend mode for subsequent drawing operations. |
SetMatrix |
Sets the transformation matrix for subsequent drawing operations. |