![]() |
OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
|
Implementation of HardwareBufferManager for OpenGL. More...
#include <OgreGLHardwareBufferManager.h>
Static Public Member Functions | |
static GLenum | getGLType (unsigned int type) |
Utility function to get the correct GL type based on VET's. | |
static GLenum | getGLUsage (unsigned int usage) |
Utility function to get the correct GL usage based on HBU's. | |
![]() | |
static HardwareBufferManager & | getSingleton (void) |
Get the singleton instance. | |
static HardwareBufferManager * | getSingletonPtr (void) |
Get the singleton instance. | |
![]() | |
static HardwareBufferManager & | getSingleton (void) |
Get the singleton instance. | |
static HardwareBufferManager * | getSingletonPtr (void) |
Get the singleton instance. | |
Additional Inherited Members | |
![]() | |
enum | BufferLicenseType { BLT_MANUAL_RELEASE , BLT_AUTOMATIC_RELEASE } |
Implementation of HardwareBufferManager for OpenGL.
Ogre::GLHardwareBufferManager::GLHardwareBufferManager | ( | ) |
Ogre::GLHardwareBufferManager::~GLHardwareBufferManager | ( | ) |
|
virtual |
Creates a vertex buffer.
Implements Ogre::HardwareBufferManagerBase.
|
virtual |
Create a hardware vertex buffer.
Implements Ogre::HardwareBufferManagerBase.
|
virtual |
Create a render to vertex buffer.
Reimplemented from Ogre::HardwareBufferManagerBase.
Utility function to get the correct GL usage based on HBU's.
Utility function to get the correct GL type based on VET's.
GLStateCacheManager * Ogre::GLHardwareBufferManager::getStateCacheManager | ( | ) |
Allocator method to allow us to use a pool of memory as a scratch area for hardware buffers.
This is because glMapBuffer is incredibly inefficient, seemingly no matter what options we give it. So for the period of lock/unlock, we will instead allocate a section of a local memory pool, and use glBufferSubDataARB / glGetBufferSubDataARB instead.
size_t Ogre::GLHardwareBufferManager::getGLMapBufferThreshold | ( | ) | const |
Threshold after which glMapBuffer is used and not glBufferSubData.