The HudPainter struct in the Sandbox.Rendering
namespace is a utility for rendering HUD elements in a scene. It provides methods to draw various shapes and text on the screen, allowing for customization of the HUD's appearance.
The HudPainter struct in the Sandbox.Rendering
namespace is a utility for rendering HUD elements in a scene. It provides methods to draw various shapes and text on the screen, allowing for customization of the HUD's appearance.
Member Name | Summary |
---|---|
SetBlendMode | Sets the blend mode for subsequent drawing operations. |
SetMatrix | Sets the transformation matrix for drawing operations. |
DrawCircle | Draws a circle at a specified position with a given size and color. |
DrawRect | Draws a rectangle with specified dimensions, color, corner radius, border width, and border color. |
DrawText | Draws text at a specified point or within a rectangle, with various rendering flags. |
DrawLine | Draws a line between two points with a specified width, color, and corner rounding. |
list | The command list used for rendering operations. |