GBDK 2020 Docs
4.1.1
API Documentation for GBDK 2020
|
Go to the source code of this file.
Functions | |
uint16_t | gb_decompress (const uint8_t *sour, uint8_t *dest) OLDCALL PRESERVES_REGS(b |
void | gb_decompress_bkg_data (uint8_t first_tile, const uint8_t *sour) OLDCALL PRESERVES_REGS(b |
void | gb_decompress_win_data (uint8_t first_tile, const uint8_t *sour) OLDCALL PRESERVES_REGS(b |
void | gb_decompress_sprite_data (uint8_t first_tile, const uint8_t *sour) OLDCALL PRESERVES_REGS(b |
Variables | |
uint16_t | c |
GB-Compress decompressor Compatible with the compression used in GBTD
GB-Compress decompressor Compatible with the compression used in GBTD
gb-decompress data from sour into dest
sour | Pointer to source gb-compressed data |
dest | Pointer to destination buffer/address |
Will decompress all of it's data to destination without stopping until the end of compressed data is reached. It is not possible to set a limit, so ensure the destination buffer has sufficient space to avoid an overflow.
gb-decompress background tiles into VRAM
first_tile | Index of the first tile to write |
sour | Pointer to (gb-compressed 2 bpp) source Tile Pattern data. |
Note: This function avoids writes during modes 2 & 3
Will decompress all of it's data to destination without stopping until the end of compressed data is reached. It is not possible to set a limit, so ensure the destination buffer has sufficient space to avoid an overflow.
gb-decompress window tiles into VRAM
first_tile | Index of the first tile to write |
sour | Pointer to (gb-compressed 2 bpp) source Tile Pattern data. |
This is the same as gb_decompress_bkg_data, since the Window Layer and Background Layer share the same Tile pattern data.
Note: This function avoids writes during modes 2 & 3
Will decompress all of it's data to destination without stopping until the end of compressed data is reached. It is not possible to set a limit, so ensure the destination buffer has sufficient space to avoid an overflow.
gb-decompress sprite tiles into VRAM
first_tile | Index of the first tile to write |
sour | Pointer to source compressed data |
Note: This function avoids writes during modes 2 & 3
Will decompress all of it's data to destination without stopping until the end of compressed data is reached. It is not possible to set a limit, so ensure the destination buffer has sufficient space to avoid an overflow.
void c |