ScummVM API documentation
Graphics::PixelBuffer Class Reference

Public Member Functions

 PixelBuffer ()
 
 PixelBuffer (const Graphics::PixelFormat &format, int buffersize, DisposeAfterUse::Flag dispose)
 
 PixelBuffer (const Graphics::PixelFormat &format, byte *buffer)
 
 PixelBuffer (const PixelBuffer &buf)
 
 ~PixelBuffer ()
 
void create (const Graphics::PixelFormat &format, int buffersize, DisposeAfterUse::Flag dispose)
 
void create (int buffersize, DisposeAfterUse::Flag dispose)
 
void set (const Graphics::PixelFormat &format, byte *buffer)
 
void free ()
 
void clear (uint length)
 
void setPixelAt (int pixel, uint32 value)
 
void setPixelAt (int pixel, const PixelBuffer &buf)
 
void setPixelAt (int thisPix, const PixelBuffer &buf, int otherPix)
 
void setPixelAt (int pixel, uint8 r, uint8 g, uint8 b)
 
void setPixelAt (int pixel, uint8 a, uint8 r, uint8 g, uint8 b)
 
void copyBuffer (int from, int length, const PixelBuffer &buf)
 
void copyBuffer (int thisFrom, int otherFrom, int length, const PixelBuffer &buf)
 
void shiftBy (int amount)
 
uint32 getValueAt (int i) const
 
void getRGBAt (int i, uint8 &r, uint8 &g, uint8 &b) const
 
void getARGBAt (int i, uint8 &a, uint8 &r, uint8 &g, uint8 &b) const
 
byte * getRawBuffer () const
 
byte * getRawBuffer (int pixel) const
 
const PixelFormatgetFormat () const
 
PixelBufferoperator= (const PixelBuffer &buf)
 
PixelBufferoperator= (byte *buffer)
 
 operator bool () const
 

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