ScummVM API documentation
Hopkins::GraphicsManager Class Reference

Public Member Functions

 GraphicsManager (HopkinsEngine *vm)
 
void clearPalette ()
 
void clearScreen ()
 
void clearVesaScreen ()
 
void resetDirtyRects ()
 
void resetRefreshRects ()
 
void addDirtyRect (int x1, int y1, int x2, int y2)
 
void addDirtyRect (const Common::Rect &r)
 
void addRefreshRect (int x1, int y1, int x2, int y2)
 
void addRectToArray (Common::Array< Common::Rect > &rects, const Common::Rect &newRect)
 
void displayDirtyRects ()
 
void displayRefreshRects ()
 
void displayZones ()
 
void displayLines ()
 
void displayDebugRect (Graphics::Surface *surface, const Common::Rect &srcRect, uint32 color=0xffffff)
 
void copySurface (const byte *surface, int x1, int y1, int width, int height, byte *destSurface, int destX, int destY)
 
void loadImage (const Common::Path &file)
 
void loadVgaImage (const Common::Path &file)
 
void fadeInLong ()
 
void fadeInBreakout ()
 
void fadeInDefaultLength (const byte *surface)
 
void fadeInShort ()
 
void fadeOutDefaultLength (const byte *surface)
 
void fadeOutBreakout ()
 
void fadeOutLong ()
 
void fadeOutShort ()
 
void copyWinscanVbe3 (const byte *srcData, byte *destSurface)
 
void copyWinscanVbe (const byte *srcP, byte *destP)
 
void copyVideoVbe16 (const byte *srcData)
 
void copyVideoVbe16a (const byte *srcData)
 
void copySurfaceRect (const byte *srcSurface, byte *destSurface, int xs, int ys, int width, int height)
 
void restoreSurfaceRect (byte *destSurface, const byte *src, int xp, int yp, int width, int height)
 
void displayFont (byte *surface, const byte *spriteData, int xp, int yp, int characterIndex, int color)
 
void drawHorizontalLine (byte *surface, int xp, int yp, uint16 width, byte col)
 
void drawVerticalLine (byte *surface, int xp, int yp, int height, byte col)
 
void initColorTable (int minIndex, int maxIndex, byte *palette)
 
void setGraphicalMode (int width, int height)
 
void setPaletteVGA256 (const byte *palette)
 
void setPaletteVGA256WithRefresh (const byte *palette, const byte *surface)
 
void scrollScreen (int amount)
 
int zoomIn (int v, int percentage)
 
int zoomOut (int v, int percentage)
 
void initScreen (const Common::Path &file, int mode, bool initializeScreen)
 
void displayAllBob ()
 
void endDisplayBob ()
 
void updateScreen ()
 
void reduceScreenPart (const byte *srcSruface, byte *destSurface, int xp, int yp, int width, int height, int zoom)
 
void setScreenWidth (int pitch)
 
void setColorPercentage (int palIndex, int r, int g, int b)
 
void setColorPercentage2 (int palIndex, int r, int g, int b)
 
void fastDisplay (const byte *spriteData, int xp, int yp, int spriteIndex, bool addSegment=true)
 
void fastDisplay2 (const byte *objectData, int xp, int yp, int idx, bool addSegment=true)
 
void drawCompressedSprite (byte *surface, const byte *srcData, int xp300, int yp300, int frameIndex, int zoom1, int zoom2, bool flipFl)
 
void copyRect (const byte *srcSurface, int x1, int y1, uint16 width, int height, byte *destSurface, int destX, int destY)
 
void drawVesaSprite (byte *surface, const byte *spriteData, int xp, int yp, int spriteIndex)
 
void display8BitRect (const byte *surface, int xs, int ys, int width, int height, int destX, int destY)
 
void fillSurface (byte *surface, byte *col, int size)
 
void displayScreen (bool initPalette)
 
void backupScreen ()
 
void restoreScreen ()
 

Public Attributes

byte _paletteBuffer [256 *2]
 
byte _colorTable [800]
 
byte _palette [800]
 
byte _oldPalette [800]
 
byte * _backBuffer
 
byte * _frontBuffer
 
byte * _screenBuffer
 
byte * _backupScreen
 
bool _largeScreenFl
 
bool _noFadingFl
 
bool _fadingFl
 
bool _skipVideoLockFl
 
int _scrollOffset
 
int _scrollPosX
 
int _oldScrollPosX
 
int _scrollSpeed
 
int _lineNbr
 
int _lineNbr2
 
int _minX
 
int _minY
 
int _maxX
 
int _maxY
 
int _scrollStatus
 
int _fadeDefaultSpeed
 
int _screenLineSize
 
Common::Array< Common::Rect_dirtyRects
 
Common::Array< Common::Rect_refreshRects
 
bool _showDirtyRects
 
bool _showZones
 
bool _showLines
 
byte * _palettePixels
 

Member Data Documentation

◆ _dirtyRects

Common::Array<Common::Rect> Hopkins::GraphicsManager::_dirtyRects

The _dirtyRects list contains paletted game areas that need to be redrawn. The _dstrect array is the list of areas of the screen that ScummVM needs to be redrawn. Some areas, such as the animation managers, skip the _dirtyRects and use _dstrec directly.


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