147 u16* blockRowOffsets;
158 u16 hScrollTable[240];
159 u16 vScrollTable[20];
160 void (*prepareMapDataColumnCB)(
struct Map *map,
u16 *bufCol1,
u16 *bufCol2,
u16 xm,
u16 ym,
u16 height);
161 void (*prepareMapDataRowCB)(
struct Map *map,
u16 *bufRow1,
u16 *bufRow2,
u16 xm,
u16 ym,
u16 width);
void MAP_scrollToEx(Map *map, u32 x, u32 y, bool forceRedraw)
Exactly as MAP_scrollTo(..) except we can force complete map drawing.
Definition map.c:200
void MAP_release(Map *map)
Release the map and its resources (same as MEM_free(map))
Definition map.c:194
Map * MAP_create(const MapDefinition *mapDef, VDPPlane plane, u16 baseTile)
Create and return a Map structure required to use all MAP_xxx functions from a given MapDefinition....
Definition map.c:57
void MAP_getMetaTilemapRect(Map *map, u16 x, u16 y, u16 w, u16 h, u16 *dest)
Returns metatiles attribute for the specified region (a metatile is a block of 2x2 tiles = 16x16 pixe...
Definition map.c:1529
void MAP_scrollTo(Map *map, u32 x, u32 y)
Scroll map to specified position. The fonction takes care of updating the VDP tilemap which will be ...
Definition map.c:277
u16 MAP_getTile(Map *map, u16 x, u16 y)
Returns given tile attribute (note than map->baseTile isn't added to the result)
Definition map.c:1522
void MAP_getTilemapRect(Map *map, u16 x, u16 y, u16 w, u16 h, bool column, u16 *dest)
Returns tiles attribute data for the specified region (map->baseTile is used as base tiles attribute,...
Definition map.c:1534
u16 MAP_getMetaTile(Map *map, u16 x, u16 y)
Returns given metatile attribute (a metatile is a block of 2x2 tiles = 16x16 pixels)
Definition map.c:1517
Palette support (herited from vdp_pal.h unit)
MapDefinition structure which contains data for large level background. It's optimized to encode lar...
Definition map.h:77
Map structure containing information for large background/plane update based on MapDefinition.
Definition map.h:141
unsigned long u32
Definition types.h:105
unsigned short u16
Definition types.h:100
VDPPlane
Type used to define on which plane to work (used by some methods).
Definition vdp.h:519
VDP General Tile / Tilemap operations.