28 #ifndef __HardwarePixelBuffer__
29 #define __HardwarePixelBuffer__
73 virtual void* lockImpl(
size_t offset,
size_t length,
LockOptions options);
78 virtual void _clearSliceRTT(
size_t zoffset);
100 virtual void* lock(
size_t offset,
size_t length,
LockOptions options);
109 virtual void readData(
size_t offset,
size_t length,
void* pDest);
111 virtual void writeData(
size_t offset,
size_t length,
const void* pSource,
112 bool discardWholeBuffer =
false);
151 blitFromMemory(src,
Box(0,0,0,mWidth,mHeight,mDepth));
170 blitToMemory(
Box(0,0,0,mWidth,mHeight,mDepth), dst);
PixelBox mCurrentLock
Currently locked region (local coords)
This class represents a RenderTarget that renders to a Texture.
void blitFromMemory(const PixelBox &src)
Convenience function that blits a pixelbox from memory to the entire buffer.
virtual void * lock(size_t offset, size_t length, LockOptions options)
Lock the buffer for (potentially) reading / writing.
LockOptions
Locking options.
Structure used to define a box in a 3-D integer space.
uint32 getWidth() const
Gets the width of this buffer.
PixelFormat
The pixel format used for images, textures, and render surfaces.
Usage
Enums describing buffer usage; not mutually exclusive.
Shared pointer implementation used to share pixel buffers.
Specialisation of HardwareBuffer for a pixel buffer.
PixelFormat getFormat() const
Gets the native pixel format of this buffer.
HardwarePixelBufferSharedPtr()
uint32 getDepth() const
Gets the depth of this buffer.
Abstract class defining common features of hardware buffers.
Reference-counted shared pointer, used for objects where implicit destruction is required.
Image::Box mLockedBox
The current locked box of this surface (entire surface coords)
PixelFormat mFormat
Internal format.
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
void blitToMemory(const PixelBox &dst)
Convenience function that blits this entire buffer to a pixelbox.
uint32 getHeight() const
Gets the height of this buffer.