Class to manage the scene object rendering queue. More...
#include <OgreRenderQueue.h>
Classes | |
class | RenderableListener |
Class to listen in on items being added to the render queue. More... | |
class | RenderQueueGroupMap |
Public Types | |
typedef MapIterator < RenderQueueGroupMap > | QueueGroupIterator |
typedef ConstMapIterator < RenderQueueGroupMap > | ConstQueueGroupIterator |
Public Member Functions | |
RenderQueue () | |
virtual | ~RenderQueue () |
void | clear (bool destroyPassMaps=false) |
Empty the queue - should only be called by SceneManagers. | |
RenderQueueGroup * | getQueueGroup (uint8 qid) |
Get a render queue group. | |
void | addRenderable (Renderable *pRend, uint8 groupID, ushort priority) |
Add a renderable object to the queue. | |
void | addRenderable (Renderable *pRend, uint8 groupId) |
Add a renderable object to the queue. | |
void | addRenderable (Renderable *pRend) |
Add a renderable object to the queue. | |
uint8 | getDefaultQueueGroup (void) const |
Gets the current default queue group, which will be used for all renderable which do not specify which group they wish to be on. | |
void | setDefaultRenderablePriority (ushort priority) |
Sets the current default renderable priority, which will be used for all renderables which do not specify which priority they wish to use. | |
ushort | getDefaultRenderablePriority (void) const |
Gets the current default renderable priority, which will be used for all renderables which do not specify which priority they wish to use. | |
void | setDefaultQueueGroup (uint8 grp) |
Sets the current default queue group, which will be used for all renderable which do not specify which group they wish to be on. | |
QueueGroupIterator | _getQueueGroupIterator (void) |
Internal method, returns an iterator for the queue groups. | |
ConstQueueGroupIterator | _getQueueGroupIterator (void) const |
void | setSplitPassesByLightingType (bool split) |
Sets whether or not the queue will split passes by their lighting type, ie ambient, per-light and decal. | |
bool | getSplitPassesByLightingType (void) const |
Gets whether or not the queue will split passes by their lighting type, ie ambient, per-light and decal. | |
void | setSplitNoShadowPasses (bool split) |
Sets whether or not the queue will split passes which have shadow receive turned off (in their parent material), which is needed when certain shadow techniques are used. | |
bool | getSplitNoShadowPasses (void) const |
Gets whether or not the queue will split passes which have shadow receive turned off (in their parent material), which is needed when certain shadow techniques are used. | |
void | setShadowCastersCannotBeReceivers (bool ind) |
Sets whether or not objects which cast shadows should be treated as never receiving shadows. | |
bool | getShadowCastersCannotBeReceivers (void) const |
Gets whether or not objects which cast shadows should be treated as never receiving shadows. | |
void | setRenderableListener (RenderableListener *listener) |
Set a renderable listener on the queue. | |
RenderableListener * | getRenderableListener (void) const |
void | merge (const RenderQueue *rhs) |
Merge render queue. | |
void | processVisibleObject (MovableObject *mo, Camera *cam, bool onlyShadowCasters, VisibleObjectsBoundsInfo *visibleBounds) |
Utility method to perform the standard actions associated with getting a visible object to add itself to the queue. | |
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 Attributes | |
RenderQueueGroupMap | mGroups |
uint8 | mDefaultQueueGroup |
The current default queue group. | |
ushort | mDefaultRenderablePriority |
The default priority. | |
bool | mSplitPassesByLightingType |
bool | mSplitNoShadowPasses |
bool | mShadowCastersCannotBeReceivers |
RenderableListener * | mRenderableListener |
Class to manage the scene object rendering queue.
Definition at line 92 of file OgreRenderQueue.h.
Definition at line 305 of file OgreRenderQueue.h.
Definition at line 304 of file OgreRenderQueue.h.
Ogre::RenderQueue::RenderQueue | ( | ) |
virtual Ogre::RenderQueue::~RenderQueue | ( | ) | [virtual] |
ConstQueueGroupIterator Ogre::RenderQueue::_getQueueGroupIterator | ( | void | ) | const |
QueueGroupIterator Ogre::RenderQueue::_getQueueGroupIterator | ( | void | ) |
Internal method, returns an iterator for the queue groups.
void Ogre::RenderQueue::addRenderable | ( | Renderable * | pRend | ) |
Add a renderable object to the queue.
pRend | Pointer to the Renderable to be added to the queue |
void Ogre::RenderQueue::addRenderable | ( | Renderable * | pRend, | |
uint8 | groupId | |||
) |
Add a renderable object to the queue.
pRend | Pointer to the Renderable to be added to the queue | |
groupID | The group the renderable is to be added to. This can be used to schedule renderable objects in separate groups such that the SceneManager respects the divisions between the groupings and does not reorder them outside these boundaries. This can be handy for overlays where no matter what you want the overlay to be rendered last. |
void Ogre::RenderQueue::addRenderable | ( | Renderable * | pRend, | |
uint8 | groupID, | |||
ushort | priority | |||
) |
Add a renderable object to the queue.
pRend | Pointer to the Renderable to be added to the queue | |
groupID | The group the renderable is to be added to. This can be used to schedule renderable objects in separate groups such that the SceneManager respects the divisions between the groupings and does not reorder them outside these boundaries. This can be handy for overlays where no matter what you want the overlay to be rendered last. | |
priority | Controls the priority of the renderable within the queue group. If this number is raised, the renderable will be rendered later in the group compared to it's peers. Don't use this unless you really need to, manually ordering renderables prevents OGRE from sorting them for best efficiency. However this could be useful for ordering 2D elements manually for example. |
void Ogre::RenderQueue::clear | ( | bool | destroyPassMaps = false |
) |
Empty the queue - should only be called by SceneManagers.
destroyPassMaps | Set to true to destroy all pass maps so that the queue is completely clean (useful when switching scene managers) |
uint8 Ogre::RenderQueue::getDefaultQueueGroup | ( | void | ) | const |
Gets the current default queue group, which will be used for all renderable which do not specify which group they wish to be on.
ushort Ogre::RenderQueue::getDefaultRenderablePriority | ( | void | ) | const |
Gets the current default renderable priority, which will be used for all renderables which do not specify which priority they wish to use.
RenderQueueGroup* Ogre::RenderQueue::getQueueGroup | ( | uint8 | qid | ) |
Get a render queue group.
RenderableListener* Ogre::RenderQueue::getRenderableListener | ( | void | ) | const |
Definition at line 492 of file OgreRenderQueue.h.
bool Ogre::RenderQueue::getShadowCastersCannotBeReceivers | ( | void | ) | const |
Gets whether or not objects which cast shadows should be treated as never receiving shadows.
bool Ogre::RenderQueue::getSplitNoShadowPasses | ( | void | ) | const |
Gets whether or not the queue will split passes which have shadow receive turned off (in their parent material), which is needed when certain shadow techniques are used.
bool Ogre::RenderQueue::getSplitPassesByLightingType | ( | void | ) | const |
Gets whether or not the queue will split passes by their lighting type, ie ambient, per-light and decal.
void Ogre::RenderQueue::merge | ( | const RenderQueue * | rhs | ) |
Merge render queue.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [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 118 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
void Ogre::RenderQueue::processVisibleObject | ( | MovableObject * | mo, | |
Camera * | cam, | |||
bool | onlyShadowCasters, | |||
VisibleObjectsBoundsInfo * | visibleBounds | |||
) |
Utility method to perform the standard actions associated with getting a visible object to add itself to the queue.
This is a replacement for SceneManager implementations of the associated tasks related to calling MovableObject::_updateRenderQueue.
void Ogre::RenderQueue::setDefaultQueueGroup | ( | uint8 | grp | ) |
Sets the current default queue group, which will be used for all renderable which do not specify which group they wish to be on.
See the enum RenderQueueGroupID for what kind of values can be used here.
void Ogre::RenderQueue::setDefaultRenderablePriority | ( | ushort | priority | ) |
Sets the current default renderable priority, which will be used for all renderables which do not specify which priority they wish to use.
void Ogre::RenderQueue::setRenderableListener | ( | RenderableListener * | listener | ) |
Set a renderable listener on the queue.
Definition at line 489 of file OgreRenderQueue.h.
void Ogre::RenderQueue::setShadowCastersCannotBeReceivers | ( | bool | ind | ) |
Sets whether or not objects which cast shadows should be treated as never receiving shadows.
void Ogre::RenderQueue::setSplitNoShadowPasses | ( | bool | split | ) |
Sets whether or not the queue will split passes which have shadow receive turned off (in their parent material), which is needed when certain shadow techniques are used.
void Ogre::RenderQueue::setSplitPassesByLightingType | ( | bool | split | ) |
Sets whether or not the queue will split passes by their lighting type, ie ambient, per-light and decal.
uint8 Ogre::RenderQueue::mDefaultQueueGroup [protected] |
The current default queue group.
Definition at line 343 of file OgreRenderQueue.h.
ushort Ogre::RenderQueue::mDefaultRenderablePriority [protected] |
The default priority.
Definition at line 345 of file OgreRenderQueue.h.
RenderQueueGroupMap Ogre::RenderQueue::mGroups [protected] |
Definition at line 341 of file OgreRenderQueue.h.
RenderableListener* Ogre::RenderQueue::mRenderableListener [protected] |
Definition at line 351 of file OgreRenderQueue.h.
bool Ogre::RenderQueue::mShadowCastersCannotBeReceivers [protected] |
Definition at line 349 of file OgreRenderQueue.h.
bool Ogre::RenderQueue::mSplitNoShadowPasses [protected] |
Definition at line 348 of file OgreRenderQueue.h.
bool Ogre::RenderQueue::mSplitPassesByLightingType [protected] |
Definition at line 347 of file OgreRenderQueue.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:39:09 2012