25 #include "graphics/managed_surface.h" 26 #include "graphics/screen.h" 35 #define HDB_FONT "normalprop" 43 TileLookup() : filename(
nullptr), tData(
nullptr), skyIndex(0), animIndex(0) {}
56 GfxCache() : status(
false), tileGfx(
nullptr), size(0), loaded(0) { name[0] = 0; }
85 void setPointerState(
int value);
87 void showPointer(
bool status) {
94 void setFade(
bool fadeIn,
bool black,
int steps);
96 bool isFadeActive() {
return _fadeInfo.active; }
97 bool isFadeStaying() {
return _fadeInfo.stayFaded; }
98 void turnOffFade() { _fadeInfo.active = _fadeInfo.stayFaded =
false; }
100 void turnOffSnow() { _snowInfo.active =
false; }
102 Picture *loadPic(
const char *picName);
103 Tile *loadTile(
const char *tileName);
104 Tile *loadIcon(
const char *tileName);
105 void setPixel(
int x,
int y, uint32 color);
107 Tile *getTile(
int index);
108 void cacheTileSequence(
int index,
int count);
109 int getTileIndex(
const char *name);
110 Picture *getPicture(
const char *name);
112 void emptyGfxCaches();
113 void markTileCacheFreeable();
114 void markGfxCacheFreeable();
117 bool selectGfxType(
const char *name);
118 Tile *getTileGfx(
const char *name, int32 size);
119 Picture *getPicGfx(
const char *name, int32 size);
121 int isSky(
int skyIndex);
122 void setSky(
int skyIndex);
124 void setup3DStarsLeft();
126 void draw3DStarsLeft();
130 int animateTile(
int tileIndex);
134 bool loadFont(
const char *
string);
135 void drawText(
const char *
string);
136 void getDimensions(
const char *
string,
int *pixelsWide,
int *lines);
137 int stringLength(
const char *
string);
138 void centerPrint(
const char *
string);
139 void setTextEdges(
int left,
int right,
int top,
int bottom);
140 void getTextEdges(
int *left,
int *right,
int *top,
int *bottom);
141 void setKernLead(
int kern,
int lead);
142 void getKernLead(
int *kern,
int *lead);
143 void setCursor(
int x,
int y);
144 void getCursor(
int *x,
int *y);
148 double getSin(
int index);
149 double getCos(
int index);
153 void turnOnBonusStars(
int which);
154 void drawBonusStars();
156 void drawDebugInfo(
Tile *_debugLogo,
int fps);
161 uint16 _skyTiles[kMaxSkies];
178 #define MAX_SNOW 50 // how many snowflakes onscreen 179 #define MAX_SNOW_XV 12 185 int xvindex[MAX_SNOW];
191 } _stars3D[kNum3DStars];
196 } _stars3DSlow[kNum3DStars];
199 int _tileSkyStarsLeft;
216 int _cursorX, _cursorY;
218 int _pointerDisplayable;
227 int _eLeft, _eRight, _eTop, _eBottom;
231 Math::SineTable *_sines;
232 Math::CosineTable *_cosines;
242 int draw(
int x,
int y);
243 int drawMasked(
int x,
int y, uint8 alpha = 0xff);
247 char *getName() {
return _name; }
264 int draw(
int x,
int y);
265 int drawMasked(
int x,
int y, uint8 alpha = 0xff);
269 char *getName() {
return _name; }
Definition: managed_surface.h:51
Definition: ai-player.h:25
Definition: savefile.h:54