25 #include "made/resource.h" 27 #include "common/rect.h" 37 int16 textColor, outlineColor;
48 int16 index, xofs, yofs;
54 static const byte defaultMouseCursor[256] = {
55 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
56 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0,
57 0, 0, 0, 0, 0, 0, 0, 1, 15, 15, 1, 0, 0, 0, 0, 0,
58 0, 0, 0, 0, 0, 0, 0, 1, 15, 15, 1, 0, 0, 0, 0, 0,
59 0, 0, 0, 0, 0, 0, 0, 1, 15, 15, 1, 0, 0, 0, 0, 0,
60 0, 1, 1, 1, 1, 1, 1, 1, 15, 15, 1, 0, 0, 0, 0, 0,
61 1, 1, 15, 1, 15, 1, 15, 1, 15, 15, 1, 0, 0, 0, 0, 0,
62 1, 15, 15, 1, 15, 1, 15, 1, 15, 15, 1, 0, 0, 0, 0, 0,
63 1, 15, 15, 15, 15, 15, 15, 15, 15, 15, 1, 0, 1, 1, 1, 0,
64 1, 15, 15, 15, 15, 15, 15, 15, 15, 15, 1, 1, 15, 15, 15, 1,
65 1, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 1, 1, 1,
66 1, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 1, 1, 0, 0,
67 1, 1, 15, 15, 15, 15, 15, 15, 15, 15, 15, 1, 1, 0, 0, 0,
68 0, 1, 1, 15, 15, 15, 15, 15, 15, 15, 1, 1, 0, 0, 0, 0,
69 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
70 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
80 void drawSurface(
Graphics::Surface *sourceSurface,
int x,
int y, int16 flipX, int16 flipY, int16 mask,
const ClipInfo &clipInfo);
82 void setRGBPalette(byte *palRGB,
int start = 0,
int count = 256);
83 bool isPaletteLocked() {
return _paletteLock; }
84 void setPaletteLock(
bool lock) { _paletteLock = lock; }
85 bool isScreenLocked() {
return _screenLock; }
86 void setScreenLock(
bool lock) { _screenLock = lock; }
87 void setVisualEffectNum(
int visualEffectNum) { _visualEffectNum = visualEffectNum; }
89 void setClipArea(uint16 x1, uint16 y1, uint16 x2, uint16 y2) {
93 void setExcludeArea(uint16 x1, uint16 y1, uint16 x2, uint16 y2);
95 void setClip(int16 clip) { _clip = clip; }
96 void setExclude(int16 exclude) { _exclude = exclude; }
97 void setGround(int16 ground) { _ground = ground; }
98 void setMask(int16 mask) { _mask = mask; }
100 void setTextColor(int16 color) { _textColor = color; }
103 _textRect = textRect;
104 _textX = _textRect.
left;
105 _textY = _textRect.top;
109 textRect = _textRect;
112 void setOutlineColor(int16 color) {
113 _outlineColor = color;
114 _dropShadowColor = -1;
117 void setDropShadowColor(int16 color) {
119 _dropShadowColor = color;
122 void setTextXY(int16 x, int16 y) {
128 _textX = _textRect.
left;
129 _textY = _textRect.top;
132 uint16 updateChannel(uint16 channelIndex);
133 void deleteChannel(uint16 channelIndex);
134 int16 getChannelType(uint16 channelIndex);
135 int16 getChannelState(uint16 channelIndex);
136 void setChannelState(uint16 channelIndex, int16 state);
137 uint16 setChannelLocation(uint16 channelIndex, int16 x, int16 y);
138 uint16 setChannelContent(uint16 channelIndex, uint16 index);
139 void setChannelUseMask(uint16 channelIndex);
140 void drawSpriteChannels(
const ClipInfo &clipInfo, int16 includeStateMask, int16 excludeStateMask);
141 void updateSprites();
142 void clearChannels();
144 uint16 drawFlex(uint16 flexIndex, int16 x, int16 y, int16 flipX, int16 flipY, int16 mask,
const ClipInfo &clipInfo);
146 void drawAnimFrame(uint16 animIndex, int16 x, int16 y, int16 frameNum, int16 flipX, int16 flipY,
const ClipInfo &clipInfo);
148 uint16 drawPic(uint16 index, int16 x, int16 y, int16 flipX, int16 flipY);
149 uint16 drawMask(uint16 index, int16 x, int16 y);
151 uint16 drawAnimPic(uint16 animIndex, int16 x, int16 y, int16 frameNum, int16 flipX, int16 flipY);
153 void addSprite(uint16 spriteIndex);
155 uint16 drawSprite(uint16 flexIndex, int16 x, int16 y);
156 uint16 placeSprite(uint16 channelIndex, uint16 flexIndex, int16 x, int16 y);
158 uint16 placeAnim(uint16 channelIndex, uint16 animIndex, int16 x, int16 y, int16 frameNum);
159 int16 setAnimFrame(uint16 channelIndex, int16 frameNum);
160 int16 getAnimFrame(uint16 channelIndex);
162 uint16 placeText(uint16 channelIndex, uint16 textObjectIndex, int16 x, int16 y, uint16 fontNum, int16 textColor, int16 outlineColor);
165 void flash(
int count);
167 void setFont(int16 fontNum);
168 void printChar(uint c, int16 x, int16 y, byte color);
169 void printText(
const char *text);
170 void printTextEx(
const char *text, int16 x, int16 y, int16 fontNum, int16 textColor, int16 outlineColor,
const ClipInfo &clipInfo);
171 void printObjectText(int16 objectIndex, int16 x, int16 y, int16 fontNum, int16 textColor, int16 outlineColor,
const ClipInfo &clipInfo);
172 int16 getTextWidth(int16 fontNum,
const char *text);
177 void showWorkScreen();
178 void copyRectToScreen(
const void *buf,
int pitch,
int x,
int y,
int w,
int h);
179 void updateScreenAndWait(
int delay);
181 int16 addToSpriteList(int16 index, int16 xofs, int16 yofs);
183 void clearSpriteList();
185 void setDefaultMouseCursor();
194 byte *_palette, *_newPalette;
195 int _paletteColorCount, _oldPaletteColorCount;
196 bool _paletteInitialized, _needPalette;
199 int16 _dropShadowColor;
201 int16 _textX, _textY;
203 int16 _currentFontNum;
207 int16 _clip, _exclude, _ground, _mask;
208 int _visualEffectNum;
211 ClipInfo _clipArea, _backgroundScreenDrawCtx, _workScreenDrawCtx, _maskDrawCtx;
214 bool _excludeClipAreaEnabled[4];
216 uint16 _channelsUsedCount;
Definition: screenfx.h:42
int16 left
Definition: rect.h:145
Definition: resource.h:150