OGRE
2.2.4
Object-Oriented Graphics Rendering Engine
|
For GL3+, most (if not all) buffers, can be treated with the same code. More...
#include <OgreGL3PlusBufferInterface.h>
Public Member Functions | |
GL3PlusBufferInterface (size_t vboPoolIdx, GLuint vboName, GL3PlusDynamicBuffer *dynamicBuffer) | |
~GL3PlusBufferInterface () | |
virtual void | _ensureDelayedImmutableBuffersAreReady (void) |
void | _firstUpload (void *data, size_t elementStart, size_t elementCount) |
Only use this function for the first upload. More... | |
virtual void | _notifyBuffer (BufferPacked *buffer) |
void | _setVboPoolIndex (size_t newVboPool) |
virtual void | advanceFrame (void) |
virtual void | copyTo (BufferInterface *dstBuffer, size_t dstOffsetBytes, size_t srcOffsetBytes, size_t sizeBytes) |
BufferPacked * | getBufferPacked (void) |
GLuint | getVboName (void) const |
size_t | getVboPoolIndex (void) |
virtual void *RESTRICT_ALIAS_RETURN | map (size_t elementStart, size_t elementCount, MappingState prevMappingState, bool advanceFrame=true) |
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::GL3PlusBufferInterface::GL3PlusBufferInterface | ( | size_t | vboPoolIdx, |
GLuint | vboName, | ||
GL3PlusDynamicBuffer * | dynamicBuffer | ||
) |
Ogre::GL3PlusBufferInterface::~GL3PlusBufferInterface | ( | ) |
|
virtualinherited |
Reimplemented in Ogre::D3D11BufferInterfaceBase.
void Ogre::GL3PlusBufferInterface::_firstUpload | ( | void * | data, |
size_t | elementStart, | ||
size_t | elementCount | ||
) |
Only use this function for the first upload.
|
inlinevirtualinherited |
Reimplemented in Ogre::NULLBufferInterface.
|
inline |
References RESTRICT_ALIAS_RETURN.
|
virtual |
Implements Ogre::BufferInterface.
|
virtual |
Implements Ogre::BufferInterface.
|
inlineinherited |
|
inline |
|
inline |
|
virtual |
Implements Ogre::BufferInterface.
|
virtual |
Implements Ogre::BufferInterface.
|
virtual |
Implements Ogre::BufferInterface.
|
inherited |