s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Graphics
HudPainter
chevron_left
Graphics
struct
HudPainter
Constructors
functions
HudPainter
Fields
crop_din
list
Methods
functions
DrawCircle
functions
DrawLine
functions
DrawRect
functions
DrawText
functions
DrawTexture
functions
SetBlendMode
functions
SetMatrix
HudPainter
2D Drawing functions for a Sandbox.Rendering.CommandList. <para><c>HudPainter</c> provides a set of methods for drawing shapes, textures, and text onto a command list, typically for HUD or UI rendering. </para>
struct
Sandbox.Rendering
.
sealed
obsolete
Sandbox.Engine
build
Constructors
1
HudPainter
(
commandList
)
Initializes a new instance of the Sandbox.Rendering.HudPainter struct for the specified
.
crop_din
Fields
1
list
CommandList
The underlying Sandbox.Rendering.CommandList used for rendering.
functions
Methods
7
DrawCircle
(
position
,
size
,
color
)
Draws a filled circle at the specified position and size.
DrawLine
(
a
,
b
,
width
,
color
,
corners
)
Draws a line between two points with the specified width and color.
DrawRect
(
rect
,
color
,
cornerRadius
,
borderWidth
,
borderColor
)
Draws a rectangle with optional corner radius and border.
DrawText
(
text
,
size
,
color
,
point
,
flags
)
Draws text at a 3D point with the specified size, color, and alignment flags.
DrawTexture
(
texture
,
rect
)
Draws a texture in the specified rectangle with a white tint.
SetBlendMode
(
mode
)
Sets the blend mode for subsequent drawing operations.
SetMatrix
(
matrix
)
Sets the transformation matrix for subsequent drawing operations.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.