#include <OgreRenderQueueSortingGrouping.h>
Public Types | |
enum | OrganisationMode { OM_PASS_GROUP = 1, OM_SORT_DESCENDING = 2, OM_SORT_ASCENDING = 6 } |
Organisation modes required for this collection. More... | |
Public Member Functions | |
QueuedRenderableCollection () | |
~QueuedRenderableCollection () | |
void | clear (void) |
Empty the collection. | |
void | removePassGroup (Pass *p) |
Remove the group entry (if any) for a given Pass. | |
void | resetOrganisationModes (void) |
Reset the organisation modes required for this collection. | |
void | addOrganisationMode (OrganisationMode om) |
Add a required sorting / grouping mode to this collection when next used. | |
void | addRenderable (Pass *pass, Renderable *rend) |
Add a renderable to the collection using a given pass. | |
void | sort (const Camera *cam) |
Perform any sorting that is required on this collection. | |
void | acceptVisitor (QueuedRenderableVisitor *visitor, OrganisationMode om) const |
Accept a visitor over the collection contents. | |
Protected Types | |
typedef std::vector< RenderablePass > | RenderablePassList |
Vector of RenderablePass objects, this is built on the assumption that vectors only ever increase in size, so even if we do clear() the memory stays allocated, ie fast. | |
typedef std::vector< Renderable * > | RenderableList |
typedef std::map< Pass *, RenderableList *, PassGroupLess > | PassGroupRenderableMap |
Map of pass to renderable lists, this is a grouping by pass. | |
Protected Member Functions | |
void | acceptVisitorGrouped (QueuedRenderableVisitor *visitor) const |
Internal visitor implementation. | |
void | acceptVisitorDescending (QueuedRenderableVisitor *visitor) const |
Internal visitor implementation. | |
void | acceptVisitorAscending (QueuedRenderableVisitor *visitor) const |
Internal visitor implementation. | |
Protected Attributes | |
uint8 | mOrganisationMode |
Bitmask of the organisation modes requested. | |
PassGroupRenderableMap | mGrouped |
Grouped. | |
RenderablePassList | mSortedDescending |
Sorted descending (can iterate backwards to get ascending). | |
Static Protected Attributes | |
RadixSort< RenderablePassList, RenderablePass, uint32 > | msRadixSorter1 |
Radix sorter for accessing sort value 1 (Pass). | |
RadixSort< RenderablePassList, RenderablePass, float > | msRadixSorter2 |
Radix sorter for sort value 2 (distance). |
Definition at line 104 of file OgreRenderQueueSortingGrouping.h.
|
Map of pass to renderable lists, this is a grouping by pass.
Definition at line 190 of file OgreRenderQueueSortingGrouping.h. |
|
Definition at line 188 of file OgreRenderQueueSortingGrouping.h. |
|
Vector of RenderablePass objects, this is built on the assumption that vectors only ever increase in size, so even if we do clear() the memory stays allocated, ie fast.
Definition at line 187 of file OgreRenderQueueSortingGrouping.h. |
|
Organisation modes required for this collection.
Definition at line 115 of file OgreRenderQueueSortingGrouping.h. |
|
|
|
|
|
Accept a visitor over the collection contents.
|
|
Internal visitor implementation.
|
|
Internal visitor implementation.
|
|
Internal visitor implementation.
|
|
Add a required sorting / grouping mode to this collection when next used.
Definition at line 269 of file OgreRenderQueueSortingGrouping.h. |
|
Add a renderable to the collection using a given pass.
|
|
Empty the collection.
|
|
Remove the group entry (if any) for a given Pass.
|
|
Reset the organisation modes required for this collection.
Definition at line 259 of file OgreRenderQueueSortingGrouping.h. |
|
Perform any sorting that is required on this collection.
|
|
Grouped.
Definition at line 229 of file OgreRenderQueueSortingGrouping.h. |
|
Bitmask of the organisation modes requested.
Definition at line 226 of file OgreRenderQueueSortingGrouping.h. |
|
Sorted descending (can iterate backwards to get ascending).
Definition at line 231 of file OgreRenderQueueSortingGrouping.h. |
|
Radix sorter for accessing sort value 1 (Pass).
Definition at line 202 of file OgreRenderQueueSortingGrouping.h. |
|
Radix sorter for sort value 2 (distance).
Definition at line 223 of file OgreRenderQueueSortingGrouping.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:42:07 2006