Bank managment functions.
| inline void Tile_SetBankPage( |
| ) |
Set page number where pattern are located in VRAM. Must be called before load data there.
| page u8 | VRAM page number (0-3) |
| void Tile_LoadBankEx( |
| ) |
Load data to the given bank (in the selected page ; see Tile_SetBankPage).
| bank u8 | Bank number in current page (number of bank depend of the size of 256 tiles) |
| data const u8* | Pointer to source data (format depends on screen mode) |
| offset u16 | Tiles offset in the bank |
| num u16 | Number of tiles to load |
| inline void Tile_LoadBank( |
| ) |
Load data to the given bank (in the selected page ; see Tile_SetBankPage).
| bank u8 | Bank number in current page (number of bank depend of the size of 256 tiles) |
| data const u8* | Pointer to source data (format depends on screen mode) |
| num u16 | Number of tiles to load |
| inline void Tile_FillBank( |
| ) |
Fill the whole bank with the given color.
| bank u8 | Bank number in current page (number of bank depend of the size of 256 tiles) |
| value u8 | color to fill the whole bank |
Tiles draw functions.
| inline void Tile_SelectBank( |
| ) |
Set current pattern bank. Must be called at least once before using drawing functions.
| bank u8 | Bank number in current page (number of bank depend of the size of 256 tiles) |
| inline void Tile_SetDrawPage( |
| ) |
Set page number where to draw in VRAM. Must be called at least once before using drawing functions.
| page u8 | VRAM page number (0-3) |
| inline void Tile_DrawTile( |
| ) |
Draw a tile at the given coordinate.
| x u8 | X coordinate |
| y u8 | Y coordinate |
| tile u8 | Tile index to draw |
| inline void Tile_FillTile( |
| ) |
Fill a cell at the given position with the given color.
| x u8 | X coordinate |
| y u8 | Y coordinate |
| color u8 | Color to fill |
| void Tile_DrawMapChunk( |
| ) |
Drawn a chunk of tilemap at a given coordinate.
| x u8 | Destination X coordinate |
| y u8 | Destination Y coordinate |
| map const u8* | Pointer to source tilemap data |
| width u8 | Width of the tilemap |
| height u8 | Height of the tilemap |
| inline void Tile_DrawBlock( |
| ) |
Drawn a block of tilemap at a given coordinate.
| dx u8 | Destination X coordinate |
| dy u8 | Destination Y coordinate |
| sx u8 | Source X coordinate |
| sy u8 | Source Y coordinate |
| width u8 | Width to draw |
| height u8 | Height to draw |
| void Tile_DrawScreen( |
| ) |
Draw a whole screen with using a tilemap.
| map const u8* | Pointer to source tilemap data |
| inline void Tile_FillScreen( |
| ) |
Fill the screen with the given color.
| color u8 | Color to fill the screen with |