s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams

Game Jam III

Starts Fri 4 Sep
Theme

Theme revealed when the jam starts.

£50,000
prizepool
Read more
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter