mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
GRAPHICS: New PixelBuffer::getRawBuffer(int) function.
This commit is contained in:
parent
b42bbe5259
commit
c73da71b2f
@ -190,10 +190,15 @@ public:
|
||||
* Return the internal buffer.
|
||||
*/
|
||||
inline byte *getRawBuffer() const { return _buffer; }
|
||||
/**
|
||||
* Return the internal buffer, pointing at the wanted pixel.
|
||||
*/
|
||||
inline byte *getRawBuffer(int pixel) const { return _buffer + _format.bytesPerPixel * pixel; }
|
||||
|
||||
/**
|
||||
* Return the pixel format used.
|
||||
*/
|
||||
inline PixelFormat getFormat() const { return _format; }
|
||||
inline const PixelFormat &getFormat() const { return _format; }
|
||||
|
||||
/**
|
||||
* Copy a PixelBuffer object.
|
||||
|
Loading…
Reference in New Issue
Block a user