Click or drag to resize

PointBatchPrimitiveSet Method (IEnumerableCartesian, IEnumerableColor, 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: 21.1.408.0 (21.1.408.0)
Syntax
public void Set(
	IEnumerable<Cartesian> positions,
	IEnumerable<Color> colors,
	RenderPassHint renderPassHint
)

Parameters

positions
Type: System.Collections.GenericIEnumerableCartesian
The new positions for the point batch.
colors
Type: System.Collections.GenericIEnumerableColor
The new colors for the point batch. There must be one color for each position in positions.
renderPassHint
Type: AGI.Foundation.Graphics.AdvancedRenderPassHint
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