21 #ifndef DRAGONS_BACKGROUND_H 22 #define DRAGONS_BACKGROUND_H 24 #include "common/rect.h" 25 #include "common/system.h" 26 #include "dragons/bigfile.h" 27 #include "dragons/dragonrms.h" 28 #include "dragons/screen.h" 34 void drawTileToSurface(
Graphics::Surface *surface, byte *palette, byte *tile, uint32 x, uint32 y);
56 uint16 getScale(uint16 y);
60 void setValue(uint8 index, int16 y, int16 value);
72 uint16 tileIndexOffset;
86 byte *_tileDataOffset;
93 uint8 _layerPriority[3];
95 AlphaBlendMode _layerAlphaMode[3];
101 bool load(byte *dataStart, uint32 size);
107 uint8 getBgLayerPriority() {
return _layerPriority[0]; }
108 uint8 getMgLayerPriority() {
return _layerPriority[1]; }
109 uint8 getFgLayerPriority() {
return _layerPriority[2]; }
111 void setBgLayerPriority(uint8 newPriority) { _layerPriority[0] = newPriority; }
112 void setMgLayerPriority(uint8 newPriority) { _layerPriority[1] = newPriority; }
113 void setFgLayerPriority(uint8 newPriority) { _layerPriority[2] = newPriority; }
117 byte *getPalette() {
return _palette; }
119 void overlayPriorityTileMap(byte *data, int16 x, int16 y, int16 w, int16 h);
120 void restorePriorityTileMap(int16 x, int16 y, int16 w, int16 h);
121 void overlayImage(uint16 layerNum, byte *data, int16 x, int16 y, int16 w, int16 h);
122 void restoreTiles(uint16 layerNum, int16 x, int16 y, int16 w, int16 h);
123 void setPalette(byte *newPalette);
124 void setLayerOffset(uint8 layerNumber,
Common::Point offset);
126 ScaleLayer *getScaleLayer() {
return &_scaleLayer; }
128 Dragons::AlphaBlendMode getLayerAlphaMode(uint8 layerNumber);
129 void setLayerAlphaMode(uint8 layerNumber, Dragons::AlphaBlendMode mode);
140 void load(
TileMap &tileMap, byte *tiles);
142 void overlayTileMap(byte *data, int16 x, int16 y, int16 w, int16 h);
143 void restoreTileMap(int16 x, int16 y, int16 w, int16 h);
145 int16 _width, _height;
146 int16 _mapWidth, _mapHeight;
147 byte *_map, *_values;
153 #endif //DRAGONS_BACKGROUND_H Definition: background.h:46
Definition: background.h:36
Definition: background.h:51
Definition: dragonrms.h:42
Definition: background.h:67
Definition: background.h:138
Definition: background.h:83