27 #ifndef ICB_PX_STATIC_LAYERS_H 28 #define ICB_PX_STATIC_LAYERS_H 30 #include "engines/icb/common/px_common.h" 34 #define PCLAYER_SCHEMA 1 35 #define PCLAYER_ID MKTAG('r', 'y', 'a', 'L') 38 #define TILE_HEIGHT 48 39 #define TILES_WIDE (640 / TILE_WIDTH) 40 #define TILES_HIGH (480 / TILE_HEIGHT) 41 #define TILE_COUNT (TILES_WIDE * TILES_HIGH) 48 uint32 tilePtrs[TILE_COUNT];
49 uint32 semiPtrs[TILE_COUNT];
51 uint8 *DataStart() {
return (uint8 *)id; }
54 uint16 *GetSemiTileTable(int32 idx) {
return semiPtrs[idx] ? (uint16 *)(DataStart() + semiPtrs[idx]) : 0; }
56 uint16 *GetTileTable(int32 idx) {
return tilePtrs[idx] ? (uint16 *)(DataStart() + tilePtrs[idx]) : 0; }
59 if (READ_LE_U32(
id) != PCLAYER_ID)
71 #endif // _PX_STATIC_LAYERS_H
Definition: px_staticlayers.h:43