struct HudPainter

book_4_sparkGenerated
code_blocksInput

Description

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.

Members

Instance Members

Member NameSummary
SetBlendModeSets the blend mode for subsequent drawing operations.
SetMatrixSets the transformation matrix for drawing operations.
DrawCircleDraws a circle at a specified position with a given size and color.
DrawRectDraws a rectangle with specified dimensions, color, corner radius, border width, and border color.
DrawTextDraws text at a specified point or within a rectangle, with various rendering flags.
DrawLineDraws a line between two points with a specified width, color, and corner rounding.
listThe command list used for rendering operations.