Go to the documentation of this file.
28 #ifndef __GLHARWAREBUFFERMANAGER_H__
29 #define __GLHARWAREBUFFERMANAGER_H__
36 class GLStateCacheManager;
39 # define OGRE_GL_DEFAULT_MAP_BUFFER_THRESHOLD (1024 * 32)
66 bool useShadowBuffer =
false,
const String& name =
"");
68 static GLenum getGLUsage(
unsigned int usage);
71 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 );
150 #endif // __GLHARWAREBUFFERMANAGER_H__
Shared pointer implementation used to share counter buffers.
~GLHardwareBufferManager()
static GLenum getGLType(unsigned int type)
Utility function to get the correct GL type based on VET's.
char * mScratchBufferPool
GLHardwareBufferManager()
Base definition of a hardware buffer manager.
Shared pointer implementation used to share index buffers.
void * allocateScratch(uint32 size)
Allocator method to allow us to use a pool of memory as a scratch area for hardware buffers.
GLStateCacheManager * mStateCacheManager
GLStateCacheManager * getStateCacheManager()
An in memory cache of the OpenGL state.
Shared pointer implementation used to share vertex buffers.
static GLenum getGLUsage(unsigned int usage)
Utility function to get the correct GL usage based on HBU's.
Singleton wrapper for hardware buffer manager.
size_t mMapBufferThreshold
GLHardwareBufferManagerBase as a Singleton.
Reference-counted shared pointer, used for objects where implicit destruction is required.
void deallocateScratch(void *ptr)
@ HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE
Combination of HBU_DYNAMIC, HBU_WRITE_ONLY and HBU_DISCARDABLE.
Usage
Enums describing buffer usage; not mutually exclusive.
Implementation of HardwareBufferManager for OpenGL.
static GLenum getGLUsage(unsigned int usage)
Utility function to get the correct GL usage based on HBU's.
void setGLMapBufferThreshold(const size_t value)
size_t getGLMapBufferThreshold() const
Threshold after which glMapBuffer is used and not glBufferSubData.
static GLenum getGLType(unsigned int type)
Utility function to get the correct GL type based on VET's.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15