| DebugRendererDrawText Method (StringBuilder, Vector3F, Vector2F, Color, Boolean) |
Draws a text on a 3D position in world space.
Namespace: DigitalRune.Graphics.RenderingAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public void DrawText(
StringBuilder text,
Vector3F position,
Vector2F relativeOrigin,
Color color,
bool drawOverScene
)
Public Sub DrawText (
text As StringBuilder,
position As Vector3F,
relativeOrigin As Vector2F,
color As Color,
drawOverScene As Boolean
)
public:
void DrawText(
StringBuilder^ text,
Vector3F position,
Vector2F relativeOrigin,
Color color,
bool drawOverScene
)
member DrawText :
text : StringBuilder *
position : Vector3F *
relativeOrigin : Vector2F *
color : Color *
drawOverScene : bool -> unit
Parameters
- text
- Type: System.TextStringBuilder
The text. - position
- Type: DigitalRune.Mathematics.AlgebraVector3F
The position in world space. - relativeOrigin
- Type: DigitalRune.Mathematics.AlgebraVector2F
The relative origin of the text. (0, 0) means that the upper-left corner of the text is at
position; (1, 1) means that the lower-right corner of the text is at
position. Use (0.5, 0.5) to center the text.
- color
- Type: Color
The color. - drawOverScene
- Type: SystemBoolean
If set to the object is drawn over the graphics scene (depth-test
disabled).
See Also