s&
infoAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games exploreDiscover Games
categoryWorkshop
sports_esportsGames landscapeMaps view_in_arModels textureMaterials apparelClothing constructionMore..
forumForum menu_bookLearn
docsDocumentation apiApi Reference schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Graphics
HudPainter
chevron_left Graphics
struct
HudPainter

Constructors

functionsHudPainter

Fields

crop_dinlist

Methods

functionsDrawCirclefunctionsDrawLinefunctionsDrawRectfunctionsDrawTextfunctionsDrawTexturefunctionsSetBlendModefunctionsSetMatrix
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 .
sealedSandbox.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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter