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);
190 void initPaletteFade(
int bytesToRead);
192 int fadeRead(
Common::SeekableReadStream &stream,
byte *buf,
int totalSize);
Definition: serializer.h:80
virtual uint16 height() const
Definition: surface.h:117
virtual uint16 width() const
Definition: surface.h:112
void writeString(const Common::String &str, const Common::Point &pt, uint overrideColor)
Surface * getBackBuffer()
Definition: screen.h:66
void void gPrint(const Common::Point &pt, uint color, MSVC_PRINTF const char *formatStr,...) GCC_PRINTF(4
void setDisplayBounds(const Common::Rect &r)
void void void restoreBackground(const Common::Rect &r)
static void translatePalette(byte palette[Graphics::PALETTE_SIZE])
void resetDisplayBounds()
void synchronize(Serializer &s)
void verticalTransition()
void fadeIn(const byte palette[Graphics::PALETTE_SIZE], int speed=2)
void print(const Common::Point &pt, uint color, MSVC_PRINTF const char *formatStr,...) GCC_PRINTF(4
void slamArea(int16 xp, int16 yp, int16 width, int16 height)
void slamRect(const Common::Rect &r)
void activateBackBuffer2()
void flushImage(ImageFrame *frame, const Common::Point &pt, int16 *xp, int16 *yp, int16 *width, int16 *height)
void fadeToBlack(int speed=2)
void flushScaleImage(ImageFrame *frame, const Common::Point &pt, int16 *xp, int16 *yp, int16 *width, int16 *height, int scaleVal)
int equalizePalette(const byte palette[Graphics::PALETTE_SIZE])
void vgaBar(const Common::Rect &r, int color)
Common::Rect getDisplayBounds()
void activateBackBuffer1()
Definition: sherlock.h:206
Definition: surface.h:130
int FORCEINLINE GCC_PRINTF(2, 0) int vsprintf_s(T(&dst)[N]
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: display_client.h:58
Definition: image_file.h:36