OGRE 2.1
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 (void) |
Creates/Records a command already casted to the typename. | |
void | execute (void) |
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 (void) |
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 | ( | ) |
Creates/Records a command already casted to the typename.
May invalidate returned pointers from previous calls.
References Ogre::MAX_COMMAND_BUFFER.
Executes all the commands in the command buffer. Clears the cmd buffer afterwards.
Retrieves the command from the given offset.
Returns null if no such command at that offset (out of bounds).
Returns the offset of the given command, in case you want to retrieve the command later (addCommand may invalidate the pointer.
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 |