Click or drag to resize
AB4D logo

InstancedTextNodeAddText(String, Color, Matrix3D, Boolean) Method

Add the specified text to the InstancedTextNode with the worldMatrix instead of position and size parameters. The orientation of the text is fully defined by the worldMatrix and therefore the orientation defined by the SetTextDirection(Vector3D, Vector3D) method is not used.

Namespace: Ab3d.DirectX.Models
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax
C#
public InstancedText AddText(
	string text,
	Color color,
	Matrix3D worldMatrix,
	bool hasBackSide
)

Parameters

text  String
text to add
color  Color
color of the text
worldMatrix  Matrix3D
matrix that defines the orientation, size and position of the text
hasBackSide  Boolean
when true, then the text will be visible from the back side (another instance of the text will be rendered to show the back size)

Return Value

InstancedText
InstancedText that can be used to change the shown text.
See Also