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: 24.2.419.0 (24.2.419.0)
Syntax public void Set(
IEnumerable<Cartesian> positions,
IEnumerable<Color> colors,
RenderPassHint renderPassHint
)
Public Sub Set (
positions As IEnumerable(Of Cartesian),
colors As IEnumerable(Of Color),
renderPassHint As RenderPassHint
)
public:
void Set(
IEnumerable<Cartesian>^ positions,
IEnumerable<Color>^ colors,
RenderPassHint renderPassHint
)
member Set :
positions : IEnumerable<Cartesian> *
colors : IEnumerable<Color> *
renderPassHint : RenderPassHint -> unit
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