Click or drag to resize

PointBatchPrimitive.Set Method (IEnumerable<Cartesian>, IEnumerable<Color>, RenderPassHint)

Defines the positions and colors of points in a point batch. The points 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<Color> colors,
	RenderPassHint renderPassHint
)

Parameters

positions
Type: System.Collections.Generic.IEnumerable<Cartesian>
The new positions for the point batch.
colors
Type: System.Collections.Generic.IEnumerable<Color>
The new colors for the point batch. There must be one color for each position in positions.
renderPassHint
Type: AGI.Foundation.Graphics.Advanced.RenderPassHint
An optimization hint indicating the RenderPass implied by colors.
Remarks

Calling this method with a renderPassHint of Unknown is equivalent to calling Set with just positions and colors. When a more specific renderPassHint is used, this method can be more efficient.

See Set for a full discussion.

See Also