22 #ifndef TOLTECS_MICROTILES_H 23 #define TOLTECS_MICROTILES_H 25 #include "common/scummsys.h" 26 #include "common/util.h" 27 #include "common/rect.h" 31 typedef uint32 BoundingBox;
33 const BoundingBox FullBoundingBox = 0x00001F1F;
34 const BoundingBox EmptyBoundingBox = 0x00000000;
35 const int TileSize = 32;
43 Common::Rect *getRectangles(
int *num_rects,
int min_x,
int min_y,
int max_x,
int max_y);
46 int16 _tilesW, _tilesH;
47 byte TileX0(
const BoundingBox &boundingBox);
48 byte TileY0(
const BoundingBox &boundingBox);
49 byte TileX1(
const BoundingBox &boundingBox);
50 byte TileY1(
const BoundingBox &boundingBox);
51 bool isBoundingBoxEmpty(
const BoundingBox &boundingBox);
52 bool isBoundingBoxFull(
const BoundingBox &boundingBox);
53 void setBoundingBox(BoundingBox &boundingBox, byte x0, byte y0, byte x1, byte y1);
54 void updateBoundingBox(BoundingBox &boundingBox, byte x0, byte y0, byte x1, byte y1);
59 #endif // TOLTECS_MICROTILES_H Definition: animation.h:28
Definition: microtiles.h:37