29 #ifndef __GL3PlusHardwareBufferManager_H__
30 #define __GL3PlusHardwareBufferManager_H__
37 # define OGRE_GL_DEFAULT_MAP_BUFFER_THRESHOLD (1024 * 32)
59 bool useShadowBuffer,
const String& name =
"");
62 bool useShadowBuffer,
size_t binding,
const String& name =
"");
65 bool useShadowBuffer,
const String& name =
"");
70 static GLenum getGLUsage(
unsigned int usage);
73 static GLenum getGLType(
unsigned int type);
82 void* allocateScratch(
uint32 size);
85 void deallocateScratch(
void* ptr);
89 size_t getGLMapBufferThreshold()
const;
90 void setGLMapBufferThreshold(
const size_t value );
size_t mMapBufferThreshold
GL3PlusHardwareBufferManagerBase as a Singleton.
size_t getGLMapBufferThreshold() const
Threshold after which glMapBuffer is used and not glBufferSubData.
Implementation of HardwareBufferManager for OpenGL.
Singleton wrapper for hardware buffer manager.
Shared pointer implementation used to share vertex buffers.
static GLenum getGLType(unsigned int type)
Utility function to get the correct GL type based on VET's.
void setGLMapBufferThreshold(const size_t value)
static GLenum getGLUsage(unsigned int usage)
Utility function to get the correct GL usage based on HBU's.
Shared pointer implementation used to share index buffers.
static GLenum getGLType(unsigned int type)
Utility function to get the correct GL type based on VET's.
Base definition of a hardware buffer manager.
static GLenum getGLUsage(unsigned int usage)
Utility function to get the correct GL usage based on HBU's.
Usage
Enums describing buffer usage; not mutually exclusive.
~GL3PlusHardwareBufferManager()
#define _OgreGL3PlusExport
void deallocateScratch(void *ptr)
Shared pointer implementation used to share counter buffers.
void * allocateScratch(uint32 size)
Allocator method to allow us to use a pool of memory as a scratch area for hardware buffers...
char * mScratchBufferPool
Reference-counted shared pointer, used for objects where implicit destruction is required.
GL3PlusHardwareBufferManager()