struct HudPainter

robot_2Generated
code_blocksInput

Description

The HudPainter struct in the Sandbox.Rendering namespace is a utility for rendering HUD elements in a game. It provides methods to draw various shapes, textures, and text on the screen. This struct is marked as obsolete and is not supported in the current version of the compiler due to its use of embedded references.

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 optional corner radius and border.
DrawTextureDraws a texture within a specified rectangle. Overloaded to allow tinting.
DrawTextDraws text at a specified point or within a rectangle. Supports text flags for alignment and styling.
DrawLineDraws a line between two points with a specified width and color.
listThe command list used for rendering operations.