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.3.420.0 (24.3.420.0)
Syntax public void Set(
IEnumerable<Cartesian> positions,
IEnumerable<string> text,
TextBatchPrimitiveOptionalParameters optionalParameters,
RenderPassHint renderPassHint
)
Public Sub Set (
positions As IEnumerable(Of Cartesian),
text As IEnumerable(Of String),
optionalParameters As TextBatchPrimitiveOptionalParameters,
renderPassHint As RenderPassHint
)
public:
void Set(
IEnumerable<Cartesian>^ positions,
IEnumerable<String^>^ text,
TextBatchPrimitiveOptionalParameters^ optionalParameters,
RenderPassHint renderPassHint
)
member Set :
positions : IEnumerable<Cartesian> *
text : IEnumerable<string> *
optionalParameters : TextBatchPrimitiveOptionalParameters *
renderPassHint : RenderPassHint -> unit
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