OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Ogre::v1::GLES2HardwareBufferManagerBase Class Reference

Implementation of HardwareBufferManager for OpenGL ES. More...

#include <OgreGLES2HardwareBufferManager.h>

+ Inheritance diagram for Ogre::v1::GLES2HardwareBufferManagerBase:

Public Member Functions

 GLES2HardwareBufferManagerBase ()
 
virtual ~GLES2HardwareBufferManagerBase ()
 
HardwareCounterBufferSharedPtr createCounterBuffer (size_t sizeBytes, HardwareBuffer::Usage usage=HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE, bool useShadowBuffer=false, const String &name="")
 
HardwareIndexBufferSharedPtr createIndexBuffer (HardwareIndexBuffer::IndexType itype, size_t numIndexes, HardwareBuffer::Usage usage, bool useShadowBuffer=false)
 Create a hardware vertex buffer. More...
 
RenderToVertexBufferSharedPtr createRenderToVertexBuffer ()
 Create a render to vertex buffer. More...
 
HardwareUniformBufferSharedPtr createUniformBuffer (size_t sizeBytes, HardwareBuffer::Usage usage, bool useShadowBuffer, const String &name="")
 
HardwareUniformBufferSharedPtr createUniformBuffer (size_t sizeBytes, HardwareBuffer::Usage usage, bool useShadowBuffer, size_t binding, const String &name="")
 Create a uniform buffer. More...
 
HardwareVertexBufferSharedPtr createVertexBuffer (size_t vertexSize, size_t numVerts, HardwareBuffer::Usage usage, bool useShadowBuffer=false)
 Creates a vertex buffer. More...
 
- Public Member Functions inherited from Ogre::v1::HardwareBufferManagerBase
 HardwareBufferManagerBase ()
 
virtual ~HardwareBufferManagerBase ()
 
virtual void _forceReleaseBufferCopies (const HardwareVertexBufferSharedPtr &sourceBuffer)
 Internal method that forces the release of copies of a given buffer. More...
 
virtual void _forceReleaseBufferCopies (HardwareVertexBuffer *sourceBuffer)
 Internal method that forces the release of copies of a given buffer. More...
 
virtual void _freeUnusedBufferCopies ()
 Free all unused vertex buffer copies. More...
 
void _notifyIndexBufferDestroyed (HardwareIndexBuffer *buf)
 Notification that a hardware index buffer has been destroyed. More...
 
void _notifyVertexBufferDestroyed (HardwareVertexBuffer *buf)
 Notification that a hardware vertex buffer has been destroyed. More...
 
virtual void _releaseBufferCopies (bool forceFreeUnused=false)
 Internal method for releasing all temporary buffers which have been allocated using BLT_AUTOMATIC_RELEASE; is called by OGRE. More...
 
virtual HardwareVertexBufferSharedPtr allocateVertexBufferCopy (const HardwareVertexBufferSharedPtr &sourceBuffer, BufferLicenseType licenseType, HardwareBufferLicensee *licensee, bool copyData=false)
 Allocates a copy of a given vertex buffer. More...
 
virtual VertexBufferBindingcreateVertexBufferBinding ()
 Creates a new VertexBufferBinding. More...
 
virtual VertexDeclarationcreateVertexDeclaration ()
 Creates a new vertex declaration. More...
 
virtual void destroyVertexBufferBinding (VertexBufferBinding *binding)
 Destroys a VertexBufferBinding. More...
 
virtual void destroyVertexDeclaration (VertexDeclaration *decl)
 Destroys a vertex declaration. More...
 
virtual void registerVertexBufferSourceAndCopy (const HardwareVertexBufferSharedPtr &sourceBuffer, const HardwareVertexBufferSharedPtr &copy)
 Registers a vertex buffer as a copy of another. More...
 
virtual void releaseVertexBufferCopy (const HardwareVertexBufferSharedPtr &bufferCopy)
 Manually release a vertex buffer copy for others to subsequently use. More...
 
virtual void touchVertexBufferCopy (const HardwareVertexBufferSharedPtr &bufferCopy)
 Tell engine that the vertex buffer copy intent to reuse. More...
 

Static Public Member Functions

static GLenum getGLType (unsigned int type)
 Utility function to get the correct GL type based on VET's. More...
 
static GLenum getGLUsage (unsigned int usage)
 Utility function to get the correct GL usage based on HBU's. More...
 

Additional Inherited Members

- Public Types inherited from Ogre::v1::HardwareBufferManagerBase
enum  BufferLicenseType { BLT_MANUAL_RELEASE , BLT_AUTOMATIC_RELEASE }
 

Detailed Description

Implementation of HardwareBufferManager for OpenGL ES.

Constructor & Destructor Documentation

◆ GLES2HardwareBufferManagerBase()

Ogre::v1::GLES2HardwareBufferManagerBase::GLES2HardwareBufferManagerBase ( )

◆ ~GLES2HardwareBufferManagerBase()

virtual Ogre::v1::GLES2HardwareBufferManagerBase::~GLES2HardwareBufferManagerBase ( )
virtual

Member Function Documentation

◆ createCounterBuffer()

HardwareCounterBufferSharedPtr Ogre::v1::GLES2HardwareBufferManagerBase::createCounterBuffer ( size_t  sizeBytes,
HardwareBuffer::Usage  usage = HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE,
bool  useShadowBuffer = false,
const String name = "" 
)

◆ createIndexBuffer()

HardwareIndexBufferSharedPtr Ogre::v1::GLES2HardwareBufferManagerBase::createIndexBuffer ( HardwareIndexBuffer::IndexType  itype,
size_t  numIndexes,
HardwareBuffer::Usage  usage,
bool  useShadowBuffer = false 
)
virtual

Create a hardware vertex buffer.

Implements Ogre::v1::HardwareBufferManagerBase.

◆ createRenderToVertexBuffer()

RenderToVertexBufferSharedPtr Ogre::v1::GLES2HardwareBufferManagerBase::createRenderToVertexBuffer ( )

Create a render to vertex buffer.

◆ createUniformBuffer() [1/2]

HardwareUniformBufferSharedPtr Ogre::v1::GLES2HardwareBufferManagerBase::createUniformBuffer ( size_t  sizeBytes,
HardwareBuffer::Usage  usage,
bool  useShadowBuffer,
const String name = "" 
)

◆ createUniformBuffer() [2/2]

HardwareUniformBufferSharedPtr Ogre::v1::GLES2HardwareBufferManagerBase::createUniformBuffer ( size_t  sizeBytes,
HardwareBuffer::Usage  usage,
bool  useShadowBuffer,
size_t  binding,
const String name = "" 
)

Create a uniform buffer.

◆ createVertexBuffer()

HardwareVertexBufferSharedPtr Ogre::v1::GLES2HardwareBufferManagerBase::createVertexBuffer ( size_t  vertexSize,
size_t  numVerts,
HardwareBuffer::Usage  usage,
bool  useShadowBuffer = false 
)
virtual

Creates a vertex buffer.

Implements Ogre::v1::HardwareBufferManagerBase.

◆ getGLType()

static GLenum Ogre::v1::GLES2HardwareBufferManagerBase::getGLType ( unsigned int  type)
static

Utility function to get the correct GL type based on VET's.

Referenced by Ogre::v1::GLES2HardwareBufferManager::getGLType().

◆ getGLUsage()

static GLenum Ogre::v1::GLES2HardwareBufferManagerBase::getGLUsage ( unsigned int  usage)
static

Utility function to get the correct GL usage based on HBU's.

Referenced by Ogre::v1::GLES2HardwareBufferManager::getGLUsage().


The documentation for this class was generated from the following file: