Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Ogre::RenderQueueGroup Class Reference

A grouping level underneath RenderQueue which groups renderables to be issued at coarsely the same time to the renderer. More...

#include <OgreRenderQueueSortingGrouping.h>

List of all members.

Public Types

typedef std::map< ushort,
RenderPriorityGroup *, std::less<
ushort > > 
PriorityMap
typedef MapIterator< PriorityMapPriorityMapIterator

Public Methods

 RenderQueueGroup ()
 ~RenderQueueGroup ()
PriorityMapIterator getIterator (void)
 Get an iterator for browsing through child contents. More...

void addRenderable (Renderable *pRend, ushort priority)
 Add a renderable to this group, with the given priority. More...

void clear (void)
 Clears this group of renderables. More...


Protected Attributes

PriorityMap mPriorityGroups


Detailed Description

A grouping level underneath RenderQueue which groups renderables to be issued at coarsely the same time to the renderer.

Remarks:
Each instance of this class itself hold RenderPriorityGroup instances, which are the groupings of renderables by priority for fine control of ordering (not required for most instances).

This is an internal OGRE class, not intended for apps to use.


Member Typedef Documentation

typedef std::map<ushort, RenderPriorityGroup*, std::less<ushort> > Ogre::RenderQueueGroup::PriorityMap
 

typedef MapIterator<PriorityMap> Ogre::RenderQueueGroup::PriorityMapIterator
 


Constructor & Destructor Documentation

Ogre::RenderQueueGroup::RenderQueueGroup   [inline]
 

Ogre::RenderQueueGroup::~RenderQueueGroup   [inline]
 


Member Function Documentation

void Ogre::RenderQueueGroup::addRenderable Renderable   pRend,
ushort    priority
[inline]
 

Add a renderable to this group, with the given priority.

void Ogre::RenderQueueGroup::clear void    [inline]
 

Clears this group of renderables.

Remarks:
Doesn't delete any priority groups, just empties them. Saves on memory deallocations since the chances are rougly the same kinds of renderables are going to be sent to the queue again next time.

PriorityMapIterator Ogre::RenderQueueGroup::getIterator void    [inline]
 

Get an iterator for browsing through child contents.


Member Data Documentation

PriorityMap Ogre::RenderQueueGroup::mPriorityGroups [protected]
 

Copyright © 2002 by The OGRE Team