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

#include <OgreGLESHardwareIndexBuffer.h>

+ Inheritance diagram for Ogre::GLESHardwareIndexBuffer:
+ Collaboration diagram for Ogre::GLESHardwareIndexBuffer:

Public Member Functions

 GLESHardwareIndexBuffer (HardwareBufferManagerBase *mgr, IndexType idxType, size_t numIndexes, HardwareBuffer::Usage usage, bool useShadowBuffer)
 
virtual ~GLESHardwareIndexBuffer ()
 
void _updateFromShadow (void)
 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
 
bool mLockedToScratch
 
size_t mScratchOffset
 
void * mScratchPtr
 
size_t mScratchSize
 
bool mScratchUploadOnUnlock
 

Detailed Description

Definition at line 38 of file OgreGLESHardwareIndexBuffer.h.

Constructor & Destructor Documentation

Ogre::GLESHardwareIndexBuffer::GLESHardwareIndexBuffer ( HardwareBufferManagerBase mgr,
IndexType  idxType,
size_t  numIndexes,
HardwareBuffer::Usage  usage,
bool  useShadowBuffer 
)
virtual Ogre::GLESHardwareIndexBuffer::~GLESHardwareIndexBuffer ( )
virtual

Member Function Documentation

void Ogre::GLESHardwareIndexBuffer::_updateFromShadow ( void  )
void Ogre::GLESHardwareIndexBuffer::createBuffer ( )
protected
void Ogre::GLESHardwareIndexBuffer::destroyBuffer ( )
protected
GLuint Ogre::GLESHardwareIndexBuffer::getGLBufferId ( void  ) const
inline

Definition at line 80 of file OgreGLESHardwareIndexBuffer.h.

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

Member Data Documentation

GLuint Ogre::GLESHardwareIndexBuffer::mBufferId
private

Definition at line 41 of file OgreGLESHardwareIndexBuffer.h.

bool Ogre::GLESHardwareIndexBuffer::mLockedToScratch
private

Definition at line 43 of file OgreGLESHardwareIndexBuffer.h.

size_t Ogre::GLESHardwareIndexBuffer::mScratchOffset
private

Definition at line 44 of file OgreGLESHardwareIndexBuffer.h.

void* Ogre::GLESHardwareIndexBuffer::mScratchPtr
private

Definition at line 46 of file OgreGLESHardwareIndexBuffer.h.

size_t Ogre::GLESHardwareIndexBuffer::mScratchSize
private

Definition at line 45 of file OgreGLESHardwareIndexBuffer.h.

bool Ogre::GLESHardwareIndexBuffer::mScratchUploadOnUnlock
private

Definition at line 47 of file OgreGLESHardwareIndexBuffer.h.


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