IDrawContext.DrawText Method
Definition¶
Namespace: Brine2D.Rendering
| Overloads | |
|---|---|
| DrawText(string, float, float, Color) | Draw plain text at the specified position. |
| DrawText(string, float, float, TextRenderOptions) | Draw text with advanced formatting options. |
IDrawContext.DrawText(string, float, float, Color) Method¶
Draw plain text at the specified position.
void DrawText(string text, float x, float y, Brine2D.Core.Color color);
Parameters¶
text System.String
Text to render (supports \n for newlines)
X position
Y position
color Color
Text color
IDrawContext.DrawText(string, float, float, TextRenderOptions) Method¶
Draw text with advanced formatting options.
void DrawText(string text, float x, float y, Brine2D.Rendering.Text.TextRenderOptions options);
Parameters¶
text System.String
Text to render (with optional BBCode markup if ParseMarkup=true)
X position
Y position
options TextRenderOptions
Rendering options (alignment, wrapping, effects, etc.)