#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. | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
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 | |
static RadixSort < RenderablePassList, RenderablePass, uint32 > | msRadixSorter1 |
Radix sorter for accessing sort value 1 (Pass). | |
static RadixSort < RenderablePassList, RenderablePass, float > | msRadixSorter2 |
Radix sorter for sort value 2 (distance). | |
Classes | |
struct | DepthSortDescendingLess |
Comparator to order objects by descending camera distance. More... | |
struct | PassGroupLess |
Comparator to order pass groups. More... | |
struct | RadixSortFunctorDistance |
Functor for descending sort value 2 for radix sort (distance). More... | |
struct | RadixSortFunctorPass |
Functor for accessing sort value 1 for radix sort (Pass). More... |
Definition at line 108 of file OgreRenderQueueSortingGrouping.h.
typedef std::vector<RenderablePass> Ogre::QueuedRenderableCollection::RenderablePassList [protected] |
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 191 of file OgreRenderQueueSortingGrouping.h.
typedef std::vector<Renderable*> Ogre::QueuedRenderableCollection::RenderableList [protected] |
Definition at line 192 of file OgreRenderQueueSortingGrouping.h.
typedef std::map<Pass*, RenderableList*, PassGroupLess> Ogre::QueuedRenderableCollection::PassGroupRenderableMap [protected] |
Map of pass to renderable lists, this is a grouping by pass.
Definition at line 194 of file OgreRenderQueueSortingGrouping.h.
Organisation modes required for this collection.
OM_PASS_GROUP | Group by pass. |
OM_SORT_DESCENDING | Sort descending camera distance. |
OM_SORT_ASCENDING | Sort ascending camera distance Note value overlaps with descending since both use same sort. |
Definition at line 119 of file OgreRenderQueueSortingGrouping.h.
Ogre::QueuedRenderableCollection::QueuedRenderableCollection | ( | ) |
Ogre::QueuedRenderableCollection::~QueuedRenderableCollection | ( | ) |
void Ogre::QueuedRenderableCollection::acceptVisitorGrouped | ( | QueuedRenderableVisitor * | visitor | ) | const [protected] |
Internal visitor implementation.
void Ogre::QueuedRenderableCollection::acceptVisitorDescending | ( | QueuedRenderableVisitor * | visitor | ) | const [protected] |
Internal visitor implementation.
void Ogre::QueuedRenderableCollection::acceptVisitorAscending | ( | QueuedRenderableVisitor * | visitor | ) | const [protected] |
Internal visitor implementation.
void Ogre::QueuedRenderableCollection::clear | ( | void | ) |
Empty the collection.
void Ogre::QueuedRenderableCollection::removePassGroup | ( | Pass * | p | ) |
Remove the group entry (if any) for a given Pass.
void Ogre::QueuedRenderableCollection::resetOrganisationModes | ( | void | ) |
Reset the organisation modes required for this collection.
Definition at line 263 of file OgreRenderQueueSortingGrouping.h.
void Ogre::QueuedRenderableCollection::addOrganisationMode | ( | OrganisationMode | om | ) |
Add a required sorting / grouping mode to this collection when next used.
Definition at line 273 of file OgreRenderQueueSortingGrouping.h.
void Ogre::QueuedRenderableCollection::addRenderable | ( | Pass * | pass, | |
Renderable * | rend | |||
) |
Add a renderable to the collection using a given pass.
void Ogre::QueuedRenderableCollection::sort | ( | const Camera * | cam | ) |
Perform any sorting that is required on this collection.
cam | The camera |
void Ogre::QueuedRenderableCollection::acceptVisitor | ( | QueuedRenderableVisitor * | visitor, | |
OrganisationMode | om | |||
) | const |
Accept a visitor over the collection contents.
visitor | Visitor class which should be called back | |
om | The organisation mode which you want to iterate over. Note that this must have been included in an addOrganisationMode call before any renderables were added. |
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 84 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 89 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 106 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
RadixSort<RenderablePassList, RenderablePass, uint32> Ogre::QueuedRenderableCollection::msRadixSorter1 [static, protected] |
Radix sorter for accessing sort value 1 (Pass).
Definition at line 206 of file OgreRenderQueueSortingGrouping.h.
RadixSort<RenderablePassList, RenderablePass, float> Ogre::QueuedRenderableCollection::msRadixSorter2 [static, protected] |
Radix sorter for sort value 2 (distance).
Definition at line 227 of file OgreRenderQueueSortingGrouping.h.
Bitmask of the organisation modes requested.
Definition at line 230 of file OgreRenderQueueSortingGrouping.h.
Sorted descending (can iterate backwards to get ascending).
Definition at line 235 of file OgreRenderQueueSortingGrouping.h.
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 27 22:05:26 2009