OGRE  1.9
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::GLES2HardwareVertexBuffer Class Reference

Specialisation of HardwareVertexBuffer for OpenGL ES. More...

#include <OgreGLES2HardwareVertexBuffer.h>

+ Inheritance diagram for Ogre::GLES2HardwareVertexBuffer:
+ Collaboration diagram for Ogre::GLES2HardwareVertexBuffer:

Public Member Functions

 GLES2HardwareVertexBuffer (HardwareBufferManagerBase *mgr, size_t vertexSize, size_t numVertices, HardwareBuffer::Usage usage, bool useShadowBuffer)
virtual ~GLES2HardwareVertexBuffer ()
void _updateFromShadow (void)
 See HardwareBuffer. More...
void copyData (HardwareBuffer &srcBuffer, size_t srcOffset, size_t dstOffset, size_t length, bool discardWholeBuffer=false)
 See HardwareBuffer. More...
GLuint getGLBufferId (void) const
void readData (size_t offset, size_t length, void *pDest)
 See HardwareBuffer. More...
void writeData (size_t offset, size_t length, const void *pSource, bool discardWholeBuffer=false)
 See HardwareBuffer. More...

Protected Member Functions

void createBuffer ()
void destroyBuffer ()
void * lockImpl (size_t offset, size_t length, LockOptions options)
 See HardwareBuffer. More...
virtual void notifyOnContextLost ()
 See AndroidResource. More...
virtual void notifyOnContextReset ()
 See AndroidResource. More...
void unlockImpl (void)
 See HardwareBuffer. More...

Private Attributes

GLuint mBufferId

Detailed Description

Specialisation of HardwareVertexBuffer for OpenGL ES.

Definition at line 38 of file OgreGLES2HardwareVertexBuffer.h.

Constructor & Destructor Documentation

Ogre::GLES2HardwareVertexBuffer::GLES2HardwareVertexBuffer ( HardwareBufferManagerBase mgr,
size_t  vertexSize,
size_t  numVertices,
HardwareBuffer::Usage  usage,
bool  useShadowBuffer 
virtual Ogre::GLES2HardwareVertexBuffer::~GLES2HardwareVertexBuffer ( )

Member Function Documentation

void Ogre::GLES2HardwareVertexBuffer::_updateFromShadow ( void  )
void Ogre::GLES2HardwareVertexBuffer::copyData ( HardwareBuffer srcBuffer,
size_t  srcOffset,
size_t  dstOffset,
size_t  length,
bool  discardWholeBuffer = false 
void Ogre::GLES2HardwareVertexBuffer::createBuffer ( )
void Ogre::GLES2HardwareVertexBuffer::destroyBuffer ( )
GLuint Ogre::GLES2HardwareVertexBuffer::getGLBufferId ( void  ) const

Definition at line 80 of file OgreGLES2HardwareVertexBuffer.h.

void* Ogre::GLES2HardwareVertexBuffer::lockImpl ( size_t  offset,
size_t  length,
LockOptions  options 
virtual void Ogre::GLES2HardwareVertexBuffer::notifyOnContextLost ( )
virtual void Ogre::GLES2HardwareVertexBuffer::notifyOnContextReset ( )
void Ogre::GLES2HardwareVertexBuffer::readData ( size_t  offset,
size_t  length,
void *  pDest 
void Ogre::GLES2HardwareVertexBuffer::unlockImpl ( void  )
void Ogre::GLES2HardwareVertexBuffer::writeData ( size_t  offset,
size_t  length,
const void *  pSource,
bool  discardWholeBuffer = false 

Member Data Documentation

GLuint Ogre::GLES2HardwareVertexBuffer::mBufferId

Definition at line 41 of file OgreGLES2HardwareVertexBuffer.h.

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