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