ScummVM API documentation
Titanic::CSurfaceFader Class Reference

Public Member Functions

void reset ()
 
CVideoSurfacedraw (CScreenManager *screenManager, CVideoSurface *srcSurface)
 
void setFadeIn (bool fadeIn)
 
bool isActive () const
 

Public Attributes

int _index
 
int _count
 
CVideoSurface_videoSurface
 

Member Function Documentation

◆ reset()

void Titanic::CSurfaceFader::reset ( )

Reset fading back to the start

◆ draw()

CVideoSurface* Titanic::CSurfaceFader::draw ( CScreenManager screenManager,
CVideoSurface srcSurface 
)

Creates a faded version of the passed source surface, based on a percentage visibility specified by _index of _count

◆ setFadeIn()

void Titanic::CSurfaceFader::setFadeIn ( bool  fadeIn)

Sets whether a fade in (versus a fade out) should be done

◆ isActive()

bool Titanic::CSurfaceFader::isActive ( ) const
inline

Returns true if a fade is in progress


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