gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 304aa0e790d44ffa9ea0bf2278eff41ac8740639 parent fd44443fc6729001640af08679b86627bfa9a9e3 Author: bbbbbr <bbbbbr@users.noreply.github.com> Date: Mon, 11 May 2026 00:58:50 -0700 Merge pull request #887 from bbbbbr/docs/attribute_comments Docs: more specific description of *_attribute_* functions Diffstat:
| M | gbdk-lib/include/gb/gb.h | 4 | ++-- |
| M | gbdk-lib/include/nes/nes.h | 4 | ++-- |
| M | gbdk-lib/include/sms/sms.h | 2 | +- |
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gbdk-lib/include/gb/gb.h b/gbdk-lib/include/gb/gb.h @@ -1409,7 +1409,7 @@ void get_bkg_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles) O uint8_t * set_bkg_tile_xy(uint8_t x, uint8_t y, uint8_t t); #define set_tile_xy set_bkg_tile_xy -/** Set single attribute data a on background layer at x,y +/** Set single tile attribute a on background layer at x,y @param x X-coordinate @param y Y-coordinate @param a tile attributes @@ -1708,7 +1708,7 @@ void get_win_tiles(uint8_t x, uint8_t y, uint8_t w, uint8_t h, uint8_t *tiles) O */ uint8_t * set_win_tile_xy(uint8_t x, uint8_t y, uint8_t t); -/** Set single attribute data a on window layer at x,y +/** Set single tile attribute a on window layer at x,y @param x X-coordinate @param y Y-coordinate @param a tile attributes diff --git a/gbdk-lib/include/nes/nes.h b/gbdk-lib/include/nes/nes.h @@ -926,7 +926,7 @@ uint8_t * set_bkg_tile_xy(uint8_t x, uint8_t y, uint8_t t) NO_OVERLAY_LOCALS; #define set_tile_xy set_bkg_tile_xy /** - Set single attribute data a on background layer at x,y + Set single 2x2 tile attribute a on background layer at x,y @param x X-coordinate @param y Y-coordinate @@ -935,7 +935,7 @@ uint8_t * set_bkg_tile_xy(uint8_t x, uint8_t y, uint8_t t) NO_OVERLAY_LOCALS; void set_bkg_attribute_xy_nes16x16(uint8_t x, uint8_t y, uint8_t a) NO_OVERLAY_LOCALS; /** - Set single attribute data a on background layer at x,y + Set single 2x2 tile attribute a on background layer at x,y Please note that this is just a wrapper function for set_bkg_submap_attributes_nes16x16() and divides the coordinates and dimensions by 2 to achieve this. diff --git a/gbdk-lib/include/sms/sms.h b/gbdk-lib/include/sms/sms.h @@ -907,7 +907,7 @@ uint8_t * set_tile_xy(uint8_t x, uint8_t y, uint8_t t) Z88DK_CALLEE PRESERVES_RE #define set_win_tile_xy set_tile_xy /** - * Set single attribute data a on background layer at x,y + * Set single tile attribute a on background layer at x,y * @param x X-coordinate * @param y Y-coordinate * @param a tile attributes
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.