Click or drag to resize

OrderedCompositePrimitiveBringToFront Method

Moves a primitive to the top of the composite, so that it is rendered on top of all other primitives in the composite.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 21.2.409.0 (21.2.409.0)
Syntax
public void BringToFront(
	Primitive primitive
)

Parameters

primitive
Type: AGI.Foundation.GraphicsPrimitive
The primitive in the composite to bring to the front.
Exceptions
ExceptionCondition
ArgumentNullExceptionprimitive is null.
ArgumentExceptionprimitive does not exist in the composite.
Remarks
Regardless of order in the composite, all SurfaceMeshPrimitives are rendered before other primitives in the composite.
See Also