OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::HardwareBufferLockGuard< T > Struct Template Reference

Locking helper. More...

#include <OgreHardwareBuffer.h>

Public Member Functions

 HardwareBufferLockGuard (const T &p, HardwareBuffer::LockOptions options)
 
 HardwareBufferLockGuard (const T &p, size_t offset, size_t length, HardwareBuffer::LockOptions options)
 
 ~HardwareBufferLockGuard ()
 

Public Attributes

const T & pBuf
 
void * pData
 

Detailed Description

template<typename T>
struct Ogre::HardwareBufferLockGuard< T >

Locking helper.

Guaranteed unlocking even in case of exception.

Definition at line 376 of file OgreHardwareBuffer.h.

Constructor & Destructor Documentation

template<typename T >
Ogre::HardwareBufferLockGuard< T >::HardwareBufferLockGuard ( const T &  p,
size_t  offset,
size_t  length,
HardwareBuffer::LockOptions  options 
)
inline
template<typename T >
Ogre::HardwareBufferLockGuard< T >::~HardwareBufferLockGuard ( )
inline

Definition at line 388 of file OgreHardwareBuffer.h.

References Ogre::HardwareBufferLockGuard< T >::pBuf.

Member Data Documentation

template<typename T >
void* Ogre::HardwareBufferLockGuard< T >::pData

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