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 );
void setGLMapBufferThreshold(const size_t value)
Shared pointer implementation used to share index buffers.
Implementation of HardwareBufferManager for OpenGL.
Singleton wrapper for hardware buffer manager.
static GLenum getGLType(unsigned int type)
Utility function to get the correct GL type based on VET's.
static GLenum getGLType(unsigned int type)
Utility function to get the correct GL type based on VET's.
size_t mMapBufferThreshold
Shared pointer implementation used to share counter buffers.
void deallocateScratch(void *ptr)
Shared pointer implementation used to share vertex buffers.
Base definition of a hardware buffer manager.
#define _OgreGL3PlusExport
char * mScratchBufferPool
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.
GL3PlusHardwareBufferManagerBase as a Singleton.
~GL3PlusHardwareBufferManager()
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.
GL3PlusHardwareBufferManager()
size_t getGLMapBufferThreshold() const
Threshold after which glMapBuffer is used and not glBufferSubData.
void * allocateScratch(uint32 size)
Allocator method to allow us to use a pool of memory as a scratch area for hardware buffers...