Go to the documentation of this file.
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 counter buffers.
void * allocateScratch(uint32 size)
Allocator method to allow us to use a pool of memory as a scratch area for hardware buffers.
Base definition of a hardware buffer manager.
static GLenum getGLType(unsigned int type)
Utility function to get the correct GL type based on VET's.
Shared pointer implementation used to share index buffers.
static GLenum getGLUsage(unsigned int usage)
Utility function to get the correct GL usage based on HBU's.
GLESHardwareBufferManager()
Shared pointer implementation used to share vertex buffers.
Singleton wrapper for hardware buffer manager.
static GLenum getGLUsage(unsigned int usage)
Utility function to get the correct GL usage based on HBU's.
size_t getGLMapBufferThreshold() const
Threshold after which glMapBuffer is used and not glBufferSubData.
Reference-counted shared pointer, used for objects where implicit destruction is required.
void deallocateScratch(void *ptr)
size_t mMapBufferThreshold
@ HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE
Combination of HBU_DYNAMIC, HBU_WRITE_ONLY and HBU_DISCARDABLE.
char * mScratchBufferPool
Usage
Enums describing buffer usage; not mutually exclusive.
~GLESHardwareBufferManager()
GLESHardwareBufferManagerBase as a Singleton.
void setGLMapBufferThreshold(const size_t value)
static GLenum getGLType(unsigned int type)
Utility function to get the correct GL type based on VET's.
Implementation of HardwareBufferManager for OpenGL ES.
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