ScummVM API documentation
Mortevielle::ScreenSurface Class Reference
Inheritance diagram for Mortevielle::ScreenSurface:
Graphics::Surface

Public Member Functions

 ScreenSurface (MortevielleEngine *vm)
 
void readFontData (Common::File &f, int dataSize)
 
Graphics::Surface lockArea (const Common::Rect &bounds)
 
void updateScreen ()
 
void drawPicture (GfxSurface &surface, int x, int y)
 
void copyFrom (Graphics::Surface &src, int x, int y)
 
void writeCharacter (const Common::Point &pt, unsigned char ch, int palIndex)
 
void drawBox (int x, int y, int dx, int dy, int col)
 
void fillRect (int color, const Common::Rect &bounds)
 
void clearScreen ()
 
void putxy (int x, int y)
 
void drawString (const Common::String &l, int command)
 
int getStringWidth (const Common::String &s)
 
void drawLine (int x, int y, int xx, int yy, int coul)
 
void drawRectangle (int x, int y, int dx, int dy)
 
void setPixel (const Common::Point &pt, int palIndex)
 
- Public Member Functions inherited from Graphics::Surface
 Surface ()
 
const void * getPixels () const
 
void * getPixels ()
 
void setPixels (void *newPixels)
 
const void * getBasePtr (int x, int y) const
 
void * getBasePtr (int x, int y)
 
uint32 getPixel (int x, int y) const
 
void setPixel (int x, int y, int pixel)
 
void create (int16 width, int16 height, const PixelFormat &format)
 
void free ()
 
void init (int16 width, int16 height, int16 pitch, void *pixels, const PixelFormat &format)
 
void copyFrom (const Surface &surf)
 
void convertFrom (const Surface &surf, const PixelFormat &format)
 
Surface getSubArea (const Common::Rect &area)
 
const Surface getSubArea (const Common::Rect &area) const
 
bool clip (Common::Rect &srcBounds, Common::Rect &destBounds) const
 
void copyRectToSurface (const void *buffer, int srcPitch, int destX, int destY, int width, int height)
 
void copyRectToSurface (const Graphics::Surface &srcSurface, int destX, int destY, const Common::Rect subRect)
 
void copyRectToSurfaceWithKey (const void *buffer, int srcPitch, int destX, int destY, int width, int height, uint32 key)
 
void copyRectToSurfaceWithKey (const Graphics::Surface &srcSurface, int destX, int destY, const Common::Rect subRect, uint32 key)
 
void convertToInPlace (const PixelFormat &dstFormat)
 
void convertToInPlace (const PixelFormat &dstFormat, const byte *palette, uint16 paletteCount)
 
Graphics::SurfaceconvertTo (const PixelFormat &dstFormat, const byte *srcPalette=0, int srcPaletteCount=256, const byte *dstPalette=0, int dstPaletteCount=0, DitherMethod method=kDitherFloyd) const
 
void drawLine (int x0, int y0, int x1, int y1, uint32 color)
 
void drawThickLine (int x0, int y0, int x1, int y1, int penX, int penY, uint32 color)
 
void hLine (int x, int y, int x2, uint32 color)
 
void vLine (int x, int y, int y2, uint32 color)
 
void fillRect (Common::Rect r, uint32 color)
 
void frameRect (const Common::Rect &r, uint32 color)
 
void move (int dx, int dy, int height)
 
void flipVertical (const Common::Rect &r)
 
void flipHorizontal (const Common::Rect &r)
 
bool applyColorKey (uint8 rKey, uint8 gKey, uint8 bKey, bool overwriteAlpha=false)
 
bool applyColorKey (uint8 rKey, uint8 gKey, uint8 bKey, bool overwriteAlpha, uint8 rNew, uint8 gNew, uint8 bNew)
 
bool setAlpha (uint8 alpha, bool skipTransparent=false)
 
Graphics::Surfacescale (int16 newWidth, int16 newHeight, bool filtering=false) const
 
Graphics::Surfacerotoscale (const TransformStruct &transform, bool filtering=false) const
 Rotoscale function; this returns a transformed version of this surface after rotation and scaling. Please do not use this if angle == 0, use plain old scaling function. More...
 
void debugPrint (int debuglevel=0, int width=0, int height=0, int x=0, int y=0, int scale=-1, int maxwidth=160, const byte *palette=NULL) const
 

Public Attributes

Common::Point _textPos
 
- Public Attributes inherited from Graphics::Surface
int16 w
 
int16 h
 
int32 pitch
 
PixelFormat format
 

Additional Inherited Members

- Protected Member Functions inherited from Graphics::Surface
void ditherFloyd (const byte *srcPalette, int srcPaletteCount, Surface *dstSurf, const byte *dstPalette, int dstPaletteCount, DitherMethod method, const PixelFormat &dstFormat) const
 
- Protected Attributes inherited from Graphics::Surface
void * pixels
 

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