OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Enumeration of queue groups, by which the application may group queued renderables so that they are rendered together with events in between. More...
#include <OgreRenderQueue.h>
Public Types | |
enum | Modes { V1_LEGACY , V1_FAST , FAST } |
enum | RqSortMode { DisableSort , NormalSort , StableSort } |
Public Member Functions | |
RenderQueue (HlmsManager *hlmsManager, SceneManager *sceneManager, VaoManager *vaoManager) | |
~RenderQueue () | |
void | addRenderableV1 (uint8 renderQueueId, bool casterPass, Renderable *pRend, const MovableObject *pMovableObject) |
Add a renderable (Ogre v1.x) object to the queue. | |
void | addRenderableV2 (size_t threadIdx, uint8 renderQueueId, bool casterPass, Renderable *pRend, const MovableObject *pMovableObject) |
Add a renderable (Ogre v2.0, i.e. | |
void | clear (void) |
Empty the queue - should only be called by SceneManagers. | |
void | clearState (void) |
The RenderQueue keeps track of API state to avoid redundant state change passes Calling this function forces the RenderQueue to re-set the Macro- & Blendblocks, shaders, and any other API dependendant calls on the next render. | |
void | frameEnded (void) |
Called when the frame has fully ended (ALL passes have been executed to all RTTs) | |
RenderQueue::Modes | getRenderQueueMode (uint8 rqId) const |
RqSortMode | getSortRenderQueue (uint8 rqId) const |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
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 *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void | render (RenderSystem *rs, uint8 firstRq, uint8 lastRq, bool casterPass, bool dualParaboloid) |
void | renderSingleObject (Renderable *pRend, const MovableObject *pMovableObject, RenderSystem *rs, bool casterPass, bool dualParaboloid) |
Don't call this too often. Only renders v1 objects at the moment. | |
void | setRenderQueueMode (uint8 rqId, RenderQueue::Modes newMode) |
Sets the mode for the RenderQueue ID. | |
void | setSortRenderQueue (uint8 rqId, RqSortMode sortMode) |
Sets whether we should sort the render queue ID every frame. | |
Enumeration of queue groups, by which the application may group queued renderables so that they are rendered together with events in between.
Enumerator | |
---|---|
V1_LEGACY | This is the slowest mode. Renders the same or similar way to how Ogre 1.x rendered meshes. Only v1 entities can be put in this type of queue. Ideal for low level materials, InstancedEntity via InstanceManager, and any other weird custom object. |
V1_FAST | Renders v1 entities using HLMS materials with some of the new benefits, but some deprecated features from Ogre 1.x might not be available or work properly (like global instancing buffer). Ideal for most v1 entities, particle effects and billboards using HLMS materials. Cannot be used by RenderSystems that don't support constant buffers (i.e. OpenGL ES 2) |
FAST | Renders v2 items using HLMS materials with minimum driver overhead Recommended method for rendering extremely large amounts of objects of homogeneous and heterogenous meshes, with many different kinds of materials and textures. Only v2 Items can be put in this queue. |
Ogre::RenderQueue::RenderQueue | ( | HlmsManager * | hlmsManager, |
SceneManager * | sceneManager, | ||
VaoManager * | vaoManager | ||
) |
Ogre::RenderQueue::~RenderQueue | ( | ) |
void Ogre::RenderQueue::addRenderableV1 | ( | uint8 | renderQueueId, |
bool | casterPass, | ||
Renderable * | pRend, | ||
const MovableObject * | pMovableObject | ||
) |
Add a renderable (Ogre v1.x) object to the queue.
void Ogre::RenderQueue::addRenderableV2 | ( | size_t | threadIdx, |
uint8 | renderQueueId, | ||
bool | casterPass, | ||
Renderable * | pRend, | ||
const MovableObject * | pMovableObject | ||
) |
Add a renderable (Ogre v2.0, i.e.
Items; they use VAOs) object to the queue.
threadIdx | The unique index of the thread from which this function is called from. Valid range is [0; SceneManager::mNumWorkerThreads) |
renderQueueId | The ID of the render queue. Must be the same as the ID in pMovableObject->getRenderQueueGroup() |
casterPass | Whether we're performing the shadow mapping pass. |
pRend | Pointer to the Renderable to be added to the queue. |
pMovableObject | Pointer to the MovableObject linked to the Renderable. |
The RenderQueue keeps track of API state to avoid redundant state change passes Calling this function forces the RenderQueue to re-set the Macro- & Blendblocks, shaders, and any other API dependendant calls on the next render.
Called when the frame has fully ended (ALL passes have been executed to all RTTs)
RenderQueue::Modes Ogre::RenderQueue::getRenderQueueMode | ( | uint8 | rqId | ) | const |
RqSortMode Ogre::RenderQueue::getSortRenderQueue | ( | uint8 | rqId | ) | const |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
void Ogre::RenderQueue::render | ( | RenderSystem * | rs, |
uint8 | firstRq, | ||
uint8 | lastRq, | ||
bool | casterPass, | ||
bool | dualParaboloid | ||
) |
void Ogre::RenderQueue::renderSingleObject | ( | Renderable * | pRend, |
const MovableObject * | pMovableObject, | ||
RenderSystem * | rs, | ||
bool | casterPass, | ||
bool | dualParaboloid | ||
) |
Don't call this too often. Only renders v1 objects at the moment.
void Ogre::RenderQueue::setRenderQueueMode | ( | uint8 | rqId, |
RenderQueue::Modes | newMode | ||
) |
Sets the mode for the RenderQueue ID.
rqId | ID of the render queue |
newMode | The new mode to use. |
void Ogre::RenderQueue::setSortRenderQueue | ( | uint8 | rqId, |
RqSortMode | sortMode | ||
) |
Sets whether we should sort the render queue ID every frame.
rqId | ID of the render queue |
bSort | When false, the render queue group won't be sorted. Useful when the RQ needs to be drawn exactly in the order that Renderables were added, or when you have a deep CPU bottleneck where the time taken to sort hurts more than it is supposed to help. |