aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/star_control/surface_fader_base.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-07-02 18:04:37 -0400
committerPaul Gilbert2016-07-15 19:26:24 -0400
commited06a1a44e508fe671d05a3b5de96fdc2a415ba7 (patch)
tree1688cbf51ef17755a46201c920a30d42471a22f2 /engines/titanic/star_control/surface_fader_base.h
parent79b4754b3318c21479dfccaf91dcf09fabf23fd4 (diff)
downloadscummvm-rg350-ed06a1a44e508fe671d05a3b5de96fdc2a415ba7.tar.gz
scummvm-rg350-ed06a1a44e508fe671d05a3b5de96fdc2a415ba7.tar.bz2
scummvm-rg350-ed06a1a44e508fe671d05a3b5de96fdc2a415ba7.zip
TITANIC: Added bulk ofCStarView draw
Diffstat (limited to 'engines/titanic/star_control/surface_fader_base.h')
-rw-r--r--engines/titanic/star_control/surface_fader_base.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/engines/titanic/star_control/surface_fader_base.h b/engines/titanic/star_control/surface_fader_base.h
index ead4460521..463183537b 100644
--- a/engines/titanic/star_control/surface_fader_base.h
+++ b/engines/titanic/star_control/surface_fader_base.h
@@ -36,18 +36,21 @@ private:
*/
bool setupSurface(CScreenManager *screenManager, CVideoSurface *srcSurface);
protected:
- int _index;
- int _count;
- CVideoSurface *_videoSurface;
-protected:
/**
* Create a faded version of the source surface at the given dest
*/
virtual void copySurface(CSurfaceArea &srcSurface, CSurfaceArea &destSurface) = 0;
public:
+ int _index;
+ int _count;
+ CVideoSurface *_videoSurface;
+public:
CSurfaceFaderBase();
virtual ~CSurfaceFaderBase();
+ /**
+ * Reset fading back to the start
+ */
virtual void reset();
/**
@@ -55,6 +58,11 @@ public:
* visibility specified by _index of _count
*/
virtual CVideoSurface *fade(CScreenManager *screenManager, CVideoSurface *srcSurface);
+
+ /**
+ * Returns true if a fade is in progress
+ */
+ bool isActive() const { return _index != -1 && _index < _count; }
};
} // End of namespace Titanic