30 #ifndef __GLESHardwareBufferManager_H__
31 #define __GLESHardwareBufferManager_H__
38 # define OGRE_GL_MAP_BUFFER_THRESHOLD (1024 * 32)
62 static GLenum getGLUsage(
unsigned int usage);
65 static GLenum getGLType(
unsigned int type);
74 void* allocateScratch(
uint32 size);
77 void deallocateScratch(
void* ptr);
81 size_t getGLMapBufferThreshold()
const;
82 void setGLMapBufferThreshold(
const size_t value );
87 bool useShadowBuffer =
false,
const String& name =
"");
Shared pointer implementation used to share index buffers.
void setGLMapBufferThreshold(const size_t value)
void * allocateScratch(uint32 size)
Allocator method to allow us to use a pool of memory as a scratch area for hardware buffers...
static GLenum getGLType(unsigned int type)
Utility function to get the correct GL type based on VET's.
Singleton wrapper for hardware buffer manager.
Shared pointer implementation used to share counter buffers.
Combination of HBU_DYNAMIC, HBU_WRITE_ONLY and HBU_DISCARDABLE.
GLESHardwareBufferManager()
~GLESHardwareBufferManager()
Shared pointer implementation used to share vertex buffers.
char * mScratchBufferPool
Base definition of a hardware buffer manager.
Usage
Enums describing buffer usage; not mutually exclusive.
size_t getGLMapBufferThreshold() const
Threshold after which glMapBuffer is used and not glBufferSubData.
size_t mMapBufferThreshold
static GLenum getGLUsage(unsigned int usage)
Utility function to get the correct GL usage based on HBU's.
GLESHardwareBufferManagerBase as a Singleton.
static GLenum getGLType(unsigned int type)
Utility function to get the correct GL type based on VET's.
Reference-counted shared pointer, used for objects where implicit destruction is required.
static GLenum getGLUsage(unsigned int usage)
Utility function to get the correct GL usage based on HBU's.
Implementation of HardwareBufferManager for OpenGL ES.
void deallocateScratch(void *ptr)