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.
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.
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\.\)