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);
Image::Box mLockedBox
The current locked box of this surface (entire surface coords)
virtual void * lock(size_t offset, size_t length, LockOptions options)
Lock the buffer for (potentially) reading / writing.
PixelFormat getFormat() const
Gets the native pixel format of this buffer.
HardwarePixelBufferSharedPtr()
Specialisation of HardwareBuffer for a pixel buffer.
void blitFromMemory(const PixelBox &src)
Convenience function that blits a pixelbox from memory to the entire buffer.
PixelFormat
The pixel format used for images, textures, and render surfaces.
Structure used to define a box in a 3-D integer space.
PixelBox mCurrentLock
Currently locked region (local coords)
void blitToMemory(const PixelBox &dst)
Convenience function that blits this entire buffer to a pixelbox.
This class represents a RenderTarget that renders to a Texture.
uint32 getWidth() const
Gets the width of this buffer.
Usage
Enums describing buffer usage; not mutually exclusive.
uint32 getHeight() const
Gets the height of this buffer.
Abstract class defining common features of hardware buffers.
Shared pointer implementation used to share pixel buffers.
LockOptions
Locking options.
uint32 getDepth() const
Gets the depth of this buffer.
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.
PixelFormat mFormat
Internal format.