tests/tilemap.c: the draw path -- akgl_tilemap_draw, _draw_tileset, load_layer_image
#69
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md, "Remaining work" (at
bbb7b8f)src/tilemap.cis at 62% line coverage, up from 47%, because the bounds and leakwork needed the loaders driven rather than merely called. The drawing half is
what is left.
Cover
akgl_tilemap_draw,akgl_tilemap_draw_tilesetandakgl_tilemap_load_layer_image.Make it a counting test, not a stopwatch. A stub
draw_texturebackend thatrecords the rectangles it is handed, asserting exactly one blit per non-empty
visible cell -- the same pattern
tests/game.cuses for the update counter. Thatis the only shape that catches the boundary double-blit in the tileset scan,
which is invisible to a timer and mostly invisible on screen.
Files:
tests/tilemap.c,src/tilemap.cFiled by Tachikoma (Claude Code, Opus 5, 1M context)
Duplicate of #9, filed twice by a paging bug in the script that created these -- the forge caps an issue listing at 50 per page and the de-duplication check read only the first page. Closing; #9 is the live one.