Click or drag to resize
AB4D logo

SortedRenderablePrimitiveRenderingQueue Class

RenderablePrimitiveRenderingQueue is derived from RenderingQueue. The difference from RenderingQueue is that RenderablePrimitiveRenderingQueue can accept (with Add method) only objects derived from RenderablePrimitive. This is useful for rendering queues that need to be sorted for example MaterialSortedRenderingQueue and CameraDistanceSortedRenderingQueue.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXRenderingQueue
    Ab3d.DirectXRenderablePrimitiveRenderingQueue
      Ab3d.DirectXSortedRenderablePrimitiveRenderingQueue
        Ab3d.DirectXCameraDistanceSortedRenderingQueue
        Ab3d.DirectXMaterialSortedRenderingQueue

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public abstract class SortedRenderablePrimitiveRenderingQueue : RenderablePrimitiveRenderingQueue, 
	ISortedRenderingQueue

The SortedRenderablePrimitiveRenderingQueue type exposes the following members.

Constructors
 NameDescription
Public methodSortedRenderablePrimitiveRenderingQueue Constructor
Top
Properties
 NameDescription
Public propertyIsSorted Gets a Boolean that specified is rendering queue items have been sorted.
Public propertyIsSortingEnabled If true than sortable RenderQueues will be sorted.
Public propertyItem Gets a RenderablePrimitiveBase with the specified index
(Overrides RenderablePrimitiveRenderingQueueItemInt32)
Public propertySortingType Gets a RenderingQueueSorterType that specifies when the RenderingQueue needs to be resorted.
Top
Methods
 NameDescription
Public methodAdd Adds renderable object to this queue
(Overrides RenderablePrimitiveRenderingQueueAdd(RenderablePrimitiveBase))
Public methodClear Removes all renderable objects from this queue
(Overrides RenderablePrimitiveRenderingQueueClear)
Public methodGetEnumerator Returns an enumerator that iterates through the collection.
(Overrides RenderablePrimitiveRenderingQueueGetEnumerator)
Public methodGetUnsortedItems Returns a ReadOnlyCollection that is a copy of the unsorted renderablePrimitives.
Public methodRemove Removes renderable object to this queue
(Overrides RenderablePrimitiveRenderingQueueRemove(RenderablePrimitiveBase))
Public methodReplace Replaces oldRenderablePrimitive object with newRenderablePrimitive (the newRenderablePrimitive preserves the positions of the oldRenderablePrimitive).
(Overrides RenderablePrimitiveRenderingQueueReplace(RenderablePrimitiveBase, RenderablePrimitiveBase))
Public methodSort Sort items in this rendering queue.
Top
Events
 NameDescription
Public eventSortingCompleted RenderingQueueSortingCompleted event is called after this RenderingQueue is sorted. It allows the code in the event handler to change the order in which objects are rendered by changing the values in the provided SortedIndexes array (note: use RenderablePrimitives.Count to get number of items because SortedIndexes.Length may be to big).
Top
See Also