diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-04-06 12:32:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 12:32:23 +0200 |
commit | d1c00c98ca0f2ca498284e60fa057a610cc5c461 (patch) | |
tree | a2efebcb9917d7f4f3666a722338f50b9590e843 /src/ppu/consts.h | |
parent | 1771aaa12736b4dbc24419270cf595de6d345969 (diff) | |
parent | 93e9426d5642dfab7a13d5a34873b296de1d9642 (diff) |
Merge pull request #58 from UnavailableDev/dev
Dynamic tilemap
Diffstat (limited to 'src/ppu/consts.h')
-rw-r--r-- | src/ppu/consts.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ppu/consts.h b/src/ppu/consts.h index a27b7b7..d7caf5e 100644 --- a/src/ppu/consts.h +++ b/src/ppu/consts.h @@ -55,3 +55,9 @@ #define HH_PPU_VRAM_AUX_OFFSET ((hh_ppu_addr_t) 0xde00) /** @brief auxiliary memory size in words */ #define HH_PPU_VRAM_AUX_SIZE ((hh_ppu_addr_t) 0x0002) + +/** @brief sprite size in bytes */ +#define HH_PPU_BYTE_SPRITE_SIZE (HH_PPU_VRAM_TMM_SPRITE_SIZE * sizeof(hh_ppu_data_t)) +/** @brief sprite size in 32-bit words (for stm) */ +#define HH_PPU_NATIVE_SPRITE_SIZE (HH_PPU_BYTE_SPRITE_SIZE / sizeof(uint32_t)) + |