22 #ifndef SHERLOCK_SCREEN_H 23 #define SHERLOCK_SCREEN_H 25 #include "common/list.h" 26 #include "common/rect.h" 27 #include "sherlock/image_file.h" 28 #include "sherlock/surface.h" 29 #include "sherlock/resources.h" 30 #include "sherlock/saveload.h" 34 #define BG_GREYSCALE_RANGE_END 229 41 uint32 _transitionSeed;
44 int _fadeBytesRead, _fadeBytesToRead;
51 Surface _backBuffer1, _backBuffer2;
53 byte _cMap[Graphics::PALETTE_SIZE];
54 byte _sMap[Graphics::PALETTE_SIZE];
55 byte _tMap[Graphics::PALETTE_SIZE];
91 void fadeIn(
const byte palette[Graphics::PALETTE_SIZE],
int speed = 2);
134 int16 *width, int16 *height);
141 int16 *width, int16 *height,
int scaleVal);
190 void initPaletteFade(
int bytesToRead);
Definition: surface.h:130
Common::Rect getDisplayBounds()
void void void restoreBackground(const Common::Rect &r)
void synchronize(Serializer &s)
Definition: animation.h:29
void print(const Common::Point &pt, uint color, MSVC_PRINTF const char *formatStr,...) GCC_PRINTF(4
void flushScaleImage(ImageFrame *frame, const Common::Point &pt, int16 *xp, int16 *yp, int16 *width, int16 *height, int scaleVal)
void activateBackBuffer1()
Definition: serializer.h:79
Definition: image_file.h:36
void fadeToBlack(int speed=2)
int FORCEINLINE GCC_PRINTF(2, 0) int vsprintf_s(T(&dst)[N]
void flushImage(ImageFrame *frame, const Common::Point &pt, int16 *xp, int16 *yp, int16 *width, int16 *height)
virtual uint16 width() const
Definition: surface.h:112
void slamArea(int16 xp, int16 yp, int16 width, int16 height)
void writeString(const Common::String &str, const Common::Point &pt, uint overrideColor)
Definition: sherlock.h:206
void fadeIn(const byte palette[Graphics::PALETTE_SIZE], int speed=2)
void vgaBar(const Common::Rect &r, int color)
void slamRect(const Common::Rect &r)
int equalizePalette(const byte palette[Graphics::PALETTE_SIZE])
virtual uint16 height() const
Definition: surface.h:117
void resetDisplayBounds()
void void gPrint(const Common::Point &pt, uint color, MSVC_PRINTF const char *formatStr,...) GCC_PRINTF(4
Surface * getBackBuffer()
Definition: screen.h:66
void setDisplayBounds(const Common::Rect &r)
static void translatePalette(byte palette[Graphics::PALETTE_SIZE])
void verticalTransition()
void activateBackBuffer2()