22 #ifndef ILLUSIONS_SCREEN_H 23 #define ILLUSIONS_SCREEN_H 25 #include "illusions/graphics.h" 26 #include "common/list.h" 27 #include "common/rect.h" 28 #include "graphics/surface.h" 32 class IllusionsEngine;
40 byte *_compressedPixels;
48 void insert(byte *drawFlags, uint32 flags, uint32 field8,
WidthHeight &dimensions,
55 SpriteDecompressQueueList _queue;
90 return item->_priority >= _priority;
94 SpriteDrawQueueList _queue;
109 uint32 _notifyThreadId;
110 Fader() : _active(
false), _paused(
false) {}
116 virtual void setPalette(byte *colors, uint start, uint count) {};
117 virtual void setPaletteEntry(int16 index, byte r, byte g, byte b) {};
118 virtual void getPalette(byte *colors) {};
119 virtual void shiftPalette(int16 fromIndex, int16 toIndex) {};
120 virtual void updatePalette() {};
121 virtual void updateFaderPalette() {};
122 virtual void setFader(
int newValue,
int firstIndex,
int lastIndex) {};
123 virtual bool isFaderActive()
const {
return false; }
124 virtual const byte* getColorTransTbl()
const {
return 0; }
130 void setPalette(byte *colors, uint start, uint count)
override;
131 void setPaletteEntry(int16 index, byte r, byte g, byte b)
override;
132 void getPalette(byte *colors)
override;
133 void shiftPalette(int16 fromIndex, int16 toIndex)
override;
134 void updatePalette()
override;
135 void updateFaderPalette()
override;
136 void setFader(
int newValue,
int firstIndex,
int lastIndex)
override;
137 bool isFaderActive()
const override {
return _isFaderActive; }
138 const byte* getColorTransTbl()
const override {
return _colorTransTbl; }
141 bool _needRefreshPalette;
142 byte _mainPalette[768];
143 byte _colorTransTbl[256];
145 byte _faderPalette[768];
146 int _newFaderValue, _firstFaderIndex, _lastFaderIndex;
147 void setSystemPalette(byte *palette);
148 void buildColorTransTbl();
161 void setDisplayOn(
bool isOn);
163 void updateSprites();
164 void clearScreenOffsetAreas();
165 uint16 getColorKey1()
const {
return _colorKey1; }
166 void setColorKey1(uint16 colorKey) { _colorKey1 = colorKey; }
167 uint16 getColorKey2()
const {
return _colorKey2; }
168 int16 getScreenWidth()
const {
return _backSurface->w; }
169 int16 getScreenHeight()
const {
return _backSurface->h; }
177 const SurfInfo &surfInfo, int16 scale, uint flags, byte *compressedPixels) = 0;
186 bool _isScreenOffsetActive;
199 const SurfInfo &surfInfo, int16 scale, uint flags, byte *compressedPixels)
override;
215 const SurfInfo &surfInfo, int16 scale, uint flags, byte *compressedPixels)
override;
222 uint16 convertColor(byte color);
223 uint16 convertFontColor(byte color);
228 #endif // ILLUSIONS_SCREEN_H
Definition: fontresource.h:60
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: graphics.h:38
Definition: graphics.h:31
Definition: list_intern.h:51
Definition: illusions.h:92