28 #ifndef __HardwarePixelBuffer__
29 #define __HardwarePixelBuffer__
73 virtual void* lockImpl(
size_t offset,
size_t length,
LockOptions options);
81 virtual void _clearSliceRTT(
size_t zoffset);
103 virtual void* lock(
size_t offset,
size_t length,
LockOptions options);
112 virtual void readData(
size_t offset,
size_t length,
void* pDest);
114 virtual void writeData(
size_t offset,
size_t length,
const void* pSource,
115 bool discardWholeBuffer =
false);
154 blitFromMemory(src,
Box(0,0,0,mWidth,mHeight,mDepth));
173 blitToMemory(
Box(0,0,0,mWidth,mHeight,mDepth), dst);
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.
size_t getDepth() const
Gets the depth of this buffer.
LockOptions
Locking options.
Structure used to define a box in a 3-D integer space.
size_t 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()
size_t getHeight() const
Gets the height of this buffer.
Abstract class defining common features of hardware buffers.
Reference-counted shared pointer, used for objects where implicit destruction is required.
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
void blitToMemory(const PixelBox &dst)
Convience function that blits this entire buffer to a pixelbox.