s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
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
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.