A shared pointer to a pixel buffer, which may be a texture surface (a single face and mipmap level) o...
HardwarePixelBufferPtr()
Creates an empty (null) pointer.
void blitToMemory(const box &src, const PixelBox &dst)
Copies a region of this buffer into memory.
HardwarePixelBufferPtr & opAssign(const HardwarePixelBufferPtr &in other)
void blitFromMemory(const PixelBox &src, const box &dst)
Copies a region of memory into a region of this buffer.
const PixelBox & lock(const box &lockbox, HardwareBufferLockOptions opt)
Locks a region of the buffer for reading/writing.
uint getWidth()
Width of the buffer, in pixels.
const PixelBox & getCurrentLock()
Returns the PixelBox of the currently locked region.
uint getHeight()
Height of the buffer, in pixels.
void unlock()
Releases the lock obtained by lock(), uploading any modifications to the GPU.
HardwarePixelBufferPtr(const HardwarePixelBufferPtr &in other)
Creates a copy pointing to the same buffer.
A box of pixels in memory, with a known pixel format.
HardwareBufferLockOptions
Locking options (binding of enum Ogre::HardwareBuffer::LockOptions)
OGRE-AngelScript bindings; Actually named Ogre in the scripts, just changed for docs to separate thin...