OGRE-Next
2.3
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. More... | |
void | execute () |
Executes all the commands in the command buffer. Clears the cmd buffer afterwards. More... | |
CbBase * | getCommandFromOffset (size_t offset) |
Retrieves the command from the given offset. More... | |
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. More... | |
CbBase * | getLastCommand () |
Returns a pointer to the last created command. More... | |
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::FastArray< T >::end(), Ogre::MAX_COMMAND_BUFFER, Ogre::FastArray< T >::resize(), and Ogre::FastArray< T >::size().
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 |