22 #ifndef NEVERHOOD_SUBTITLES_H 23 #define NEVERHOOD_SUBTITLES_H 25 #include "common/str.h" 26 #include "neverhood/neverhood.h" 27 #include "graphics/surface.h" 42 void renderFrame(uint frameNumber,
int centerX);
43 const Graphics::Surface *getBottomSubs()
const {
return _haveBottomSubs ? &_bottomSubs :
nullptr; }
44 const Graphics::Surface *getTopSubs()
const {
return _haveTopSubs ? &_topSubs :
nullptr; }
45 bool isValid()
const {
return _isValid && !_subtitles.empty(); }
46 byte getSubtitleAlpha()
const {
return _alphaColor; }
48 static const int kSubtitleCharHeight = 16;
49 static const int kSubtitleCharWidth = 8;
Definition: background.h:30
Definition: neverhood.h:60
Definition: subtitles.h:38
Definition: subtitles.h:31