OGRE  1.11.6
Object-Oriented Graphics Rendering Engine
Ogre::HardwareBufferLockGuard Struct Reference

Locking helper. More...

#include <OgreHardwareBuffer.h>

Public Member Functions

 HardwareBufferLockGuard ()
 
 HardwareBufferLockGuard (HardwareBuffer *p, HardwareBuffer::LockOptions options)
 
 HardwareBufferLockGuard (HardwareBuffer *p, size_t offset, size_t length, HardwareBuffer::LockOptions options)
 
template<typename T >
 HardwareBufferLockGuard (const SharedPtr< T > &p, HardwareBuffer::LockOptions options)
 
template<typename T >
 HardwareBufferLockGuard (const SharedPtr< T > &p, size_t offset, size_t length, HardwareBuffer::LockOptions options)
 
 ~HardwareBufferLockGuard ()
 
void lock (HardwareBuffer *p, HardwareBuffer::LockOptions options)
 
void lock (HardwareBuffer *p, size_t offset, size_t length, HardwareBuffer::LockOptions options)
 
template<typename T >
void lock (const SharedPtr< T > &p, HardwareBuffer::LockOptions options)
 
template<typename T >
void lock (const SharedPtr< T > &p, size_t offset, size_t length, HardwareBuffer::LockOptions options)
 
void unlock ()
 

Public Attributes

HardwareBufferpBuf
 
void * pData
 

Detailed Description

Locking helper.

Guaranteed unlocking even in case of exception.

Constructor & Destructor Documentation

◆ HardwareBufferLockGuard() [1/5]

Ogre::HardwareBufferLockGuard::HardwareBufferLockGuard ( )
inline

◆ HardwareBufferLockGuard() [2/5]

Ogre::HardwareBufferLockGuard::HardwareBufferLockGuard ( HardwareBuffer p,
HardwareBuffer::LockOptions  options 
)
inline

◆ HardwareBufferLockGuard() [3/5]

Ogre::HardwareBufferLockGuard::HardwareBufferLockGuard ( HardwareBuffer p,
size_t  offset,
size_t  length,
HardwareBuffer::LockOptions  options 
)
inline

◆ HardwareBufferLockGuard() [4/5]

template<typename T >
Ogre::HardwareBufferLockGuard::HardwareBufferLockGuard ( const SharedPtr< T > &  p,
HardwareBuffer::LockOptions  options 
)
inline

◆ HardwareBufferLockGuard() [5/5]

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

◆ ~HardwareBufferLockGuard()

Ogre::HardwareBufferLockGuard::~HardwareBufferLockGuard ( )
inline

Member Function Documentation

◆ unlock()

void Ogre::HardwareBufferLockGuard::unlock ( )
inline

◆ lock() [1/4]

void Ogre::HardwareBufferLockGuard::lock ( HardwareBuffer p,
HardwareBuffer::LockOptions  options 
)
inline

◆ lock() [2/4]

void Ogre::HardwareBufferLockGuard::lock ( HardwareBuffer p,
size_t  offset,
size_t  length,
HardwareBuffer::LockOptions  options 
)
inline

◆ lock() [3/4]

template<typename T >
void Ogre::HardwareBufferLockGuard::lock ( const SharedPtr< T > &  p,
HardwareBuffer::LockOptions  options 
)
inline

◆ lock() [4/4]

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

Member Data Documentation

◆ pBuf

HardwareBuffer* Ogre::HardwareBufferLockGuard::pBuf

◆ pData

void* Ogre::HardwareBufferLockGuard::pData

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