Click or drag to resize

TextBatchPrimitiveSet Method (IEnumerableCartesian, IEnumerableString, TextBatchPrimitiveOptionalParameters, RenderPassHint)

Defines the positions, text, and optional parameters of strings in a text batch. The strings are rendered in the primitive's ReferenceFrame. renderPassHint is provided for efficiency.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public void Set(
	IEnumerable<Cartesian> positions,
	IEnumerable<string> text,
	TextBatchPrimitiveOptionalParameters optionalParameters,
	RenderPassHint renderPassHint
)

Parameters

positions
Type: System.Collections.GenericIEnumerableCartesian
The new positions for strings in the text batch.
text
Type: System.Collections.GenericIEnumerableString
The text for strings in the text batch. Each element in this collection corresponds to an element in positions.
optionalParameters
Type: AGI.Foundation.GraphicsTextBatchPrimitiveOptionalParameters
Optional per-batch parameters or per-string parameters corresponding to positions. Each per-string parameter must have the same number of elements as positions.
renderPassHint
Type: AGI.Foundation.Graphics.AdvancedRenderPassHint
An optimization hint indicating the RenderPass implied by per-strings colors defined in optionalParameters.
Remarks
See Also