![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
Command Buffer implementation. More...
#include <OgreCommandBuffer.h>
Public Types | |
| typedef void | CommandBufferExecuteFunc(CommandBuffer *_this, const CbBase *RESTRICT_ALIAS cmd) |
Public Member Functions | |
| CommandBuffer () | |
| template<typename T> | |
| T * | addCommand () |
| Creates/Records a command already casted to the typename. | |
| void | execute () |
| Executes all the commands in the command buffer. Clears the cmd buffer afterwards. | |
| CbBase * | getCommandFromOffset (size_t offset) |
| Retrieves the command from the given offset. | |
| size_t | getCommandOffset (CbBase *cmd) const |
| Returns the offset of the given command, in case you want to retrieve the command later (addCommand may invalidate the pointer. | |
| CbBase * | getLastCommand () |
| Returns a pointer to the last created command. | |
| void | setCurrentRenderSystem (RenderSystem *renderSystem) |
Command Buffer implementation.
This interface is very sensitive to performance. For this reason:
| typedef void Ogre::CommandBuffer::CommandBufferExecuteFunc(CommandBuffer *_this, const CbBase *RESTRICT_ALIAS cmd) |
| Ogre::CommandBuffer::CommandBuffer | ( | ) |
|
inline |
Creates/Records a command already casted to the typename.
May invalidate returned pointers from previous calls.
References Ogre::MAX_COMMAND_BUFFER.
| void Ogre::CommandBuffer::execute | ( | ) |
Executes all the commands in the command buffer. Clears the cmd buffer afterwards.
| CbBase * Ogre::CommandBuffer::getCommandFromOffset | ( | size_t | offset | ) |
Retrieves the command from the given offset.
Returns null if no such command at that offset (out of bounds).
| size_t Ogre::CommandBuffer::getCommandOffset | ( | CbBase * | cmd | ) | const |
Returns the offset of the given command, in case you want to retrieve the command later (addCommand may invalidate the pointer.
| CbBase * Ogre::CommandBuffer::getLastCommand | ( | ) |
Returns a pointer to the last created command.
| void Ogre::CommandBuffer::setCurrentRenderSystem | ( | RenderSystem * | renderSystem | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |