ScummVM API documentation
Mohawk::RivenGraphics Class Reference
Inheritance diagram for Mohawk::RivenGraphics:
Mohawk::GraphicsManager

Public Member Functions

 RivenGraphics (MohawkEngine_Riven *vm)
 
void beginScreenUpdate ()
 
void applyScreenUpdate (bool force=false)
 
void enableCardUpdateScript (bool enable)
 
void copyImageToScreen (uint16 image, uint32 left, uint32 top, uint32 right, uint32 bottom)
 
void drawRect (const Common::Rect &rect, bool active)
 
void drawImageRect (uint16 id, const Common::Rect &srcRect, const Common::Rect &dstRect)
 
void drawExtrasImage (uint16 id, const Common::Rect &dstRect)
 
void drawExtrasImageToScreen (uint16 id, const Common::Rect &rect)
 
void copySystemRectToScreen (const Common::Rect &rect)
 
Graphics::SurfacegetEffectScreen ()
 
Graphics::SurfacegetBackScreen ()
 
void scheduleWaterEffect (uint16)
 
void clearWaterEffect ()
 
void setFliesEffect (uint16 count, bool fireflies)
 
void clearFliesEffect ()
 
void updateEffects ()
 
void scheduleTransition (RivenTransition id, const Common::Rect &rect=Common::Rect(0, 0, 608, 392))
 
void runScheduledTransition ()
 
void fadeToBlack ()
 
void setTransitionMode (RivenTransitionMode mode)
 
void loadMenuFont ()
 
void drawText (const Common::U32String &text, const Common::Rect &dest, uint8 greyLevel)
 
void beginCredits ()
 
void updateCredits ()
 
uint getCurCreditsImage () const
 
- Public Member Functions inherited from Mohawk::GraphicsManager
void clearCache ()
 
MohawkSurfacefindImage (uint16 id)
 
void preloadImage (uint16 image)
 
virtual void setPalette (uint16 id)
 
void copyAnimImageToScreen (uint16 image, int left=0, int top=0)
 
void copyAnimImageSectionToScreen (uint16 image, Common::Rect src, Common::Rect dest)
 
void copyAnimSubImageToScreen (uint16 image, uint16 subimage, int left=0, int top=0)
 
void getSubImageSize (uint16 image, uint16 subimage, uint16 &width, uint16 &height)
 

Static Public Member Functions

static RivenTransitionMode sanitizeTransitionMode (int mode)
 

Protected Member Functions

MohawkSurfacedecodeImage (uint16 id) override
 
MohawkEnginegetVM () override
 
- Protected Member Functions inherited from Mohawk::GraphicsManager
void copyAnimImageSectionToScreen (MohawkSurface *image, Common::Rect src, Common::Rect dest)
 
virtual Common::Array< MohawkSurface * > decodeImages (uint16 id)
 
void addImageToCache (uint16 id, MohawkSurface *surface)
 

Member Function Documentation

◆ copySystemRectToScreen()

void Mohawk::RivenGraphics::copySystemRectToScreen ( const Common::Rect rect)

Copy a rect from the system screen to the game screen

◆ updateEffects()

void Mohawk::RivenGraphics::updateEffects ( )

Update the screen with the water and fly effects


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