OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
For GL3+, most (if not all) buffers, can be treated with the same code. More...
#include <OgreNULLBufferInterface.h>
Public Member Functions | |
NULLBufferInterface (size_t vboPoolIdx) | |
~NULLBufferInterface () | |
void | _firstUpload (const void *data, size_t elementStart, size_t elementCount) |
Only use this function for the first upload. | |
virtual void | _notifyBuffer (BufferPacked *buffer) |
virtual void | advanceFrame (void) |
uint8 * | getNullDataPtr (void) |
size_t | getVboPoolIndex (void) |
virtual void *RESTRICT_ALIAS_RETURN | map (size_t elementStart, size_t elementCount, MappingState prevMappingState, bool advanceFrame=true) |
void | nullDataPtr () |
will null the data ptr so it wont be freed on destruction | |
virtual void | regressFrame (void) |
virtual void | unmap (UnmapOptions unmapOption, size_t flushStartElem=0, size_t flushSizeElem=0) |
void | upload (const void *data, size_t elementStart, size_t elementCount) |
For GL3+, most (if not all) buffers, can be treated with the same code.
Hence most equivalent functionality is encapsulated here.
Ogre::NULLBufferInterface::NULLBufferInterface | ( | size_t | vboPoolIdx | ) |
Ogre::NULLBufferInterface::~NULLBufferInterface | ( | ) |
void Ogre::NULLBufferInterface::_firstUpload | ( | const void * | data, |
size_t | elementStart, | ||
size_t | elementCount | ||
) |
Only use this function for the first upload.
|
virtual |
Reimplemented from Ogre::BufferInterface.
Implements Ogre::BufferInterface.
|
virtual |
Implements Ogre::BufferInterface.
|
inline |
will null the data ptr so it wont be freed on destruction
Implements Ogre::BufferInterface.
|
virtual |
Implements Ogre::BufferInterface.
|
inherited |