ScummVM API documentation
Gob::Surface Class Reference

Public Member Functions

 Surface (uint16 width, uint16 height, uint8 bpp, byte *vidMem=0)
 
 Surface (uint16 width, uint16 height, uint8 bpp, const byte *vidMem)
 
uint16 getWidth () const
 
uint16 getHeight () const
 
uint8 getBPP () const
 
byte * getData (uint16 x=0, uint16 y=0)
 
const byte * getData (uint16 x=0, uint16 y=0) const
 
void resize (uint16 width, uint16 height)
 
void setBPP (uint8 bpp)
 
Pixel get (uint16 x=0, uint16 y=0)
 
ConstPixel get (uint16 x=0, uint16 y=0) const
 
void blit (const Surface &from, int16 left, int16 top, int16 right, int16 bottom, int16 x, int16 y, int32 transp=-1, bool yAxisReflexion=false)
 
void blit (const Surface &from, int16 x, int16 y, int32 transp=-1)
 
void blit (const Surface &from, int32 transp=-1)
 
void blitScaled (const Surface &from, int16 left, int16 top, int16 right, int16 bottom, int16 x, int16 y, Common::Rational scale, int32 transp=-1)
 
void blitScaled (const Surface &from, int16 x, int16 y, Common::Rational scale, int32 transp=-1)
 
void blitScaled (const Surface &from, Common::Rational scale, int32 transp=-1)
 
void fillRect (int16 left, int16 top, int16 right, int16 bottom, uint32 color)
 
void fillArea (int16 left, int16 top, int16 right, int16 bottom, uint32 fillColor, uint32 backgroundColor)
 
Common::Rect fillAreaAtPoint (int16 left, int16 top, uint32 fillColor)
 
void fill (uint32 color)
 
void clear ()
 
void shadeRect (uint16 left, uint16 top, uint16 right, uint16 bottom, uint32 color, uint8 strength)
 
void recolor (uint8 from, uint8 to)
 
void putPixel (uint16 x, uint16 y, uint32 color)
 
void drawLine (uint16 x0, uint16 y0, uint16 x1, uint16 y1, uint32 color)
 
void drawRect (uint16 left, uint16 top, uint16 right, uint16 bottom, uint32 color)
 
void drawCircle (uint16 x0, uint16 y0, uint16 radius, uint32 color, int16 pattern=0)
 
void blitToScreen (uint16 left, uint16 top, uint16 right, uint16 bottom, uint16 x, uint16 y) const
 
bool loadImage (Common::SeekableReadStream &stream)
 
bool loadImage (Common::SeekableReadStream &stream, ImageType type)
 

Static Public Member Functions

static ImageType identifyImage (Common::SeekableReadStream &stream)
 

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