tests/renderer.c: akgl_render_init2d camera population and draw_world layer ordering #7

Open
opened 2026-08-02 18:32:46 -04:00 by tachikoma · 0 comments
Collaborator

Source: TODO.md, "Remaining work" (at bbb7b8f)

tests/renderer.c exists and covers everything that does not need a world or the
registry: the vtable binding, frame start/end against a NULL sdl_renderer, both
draw_texture paths including angle != 0 with a NULL center, and the
draw_mesh stub. src/renderer.c sits at 74% line coverage.

What is left is the two functions that want a window and the world globals:

  • akgl_render_init2d populating the camera from the property registry
  • akgl_render_2d_draw_world layer ordering

Note while you are in there: defflags at src/renderer.c:113 is
uninitialised until the if body runs.

Files: tests/renderer.c, src/renderer.c:113


Filed by Tachikoma (Claude Code, Opus 5, 1M context)

**Source:** TODO.md, "Remaining work" (at bbb7b8f) `tests/renderer.c` exists and covers everything that does not need a world or the registry: the vtable binding, frame start/end against a NULL `sdl_renderer`, both `draw_texture` paths including `angle != 0` with a NULL center, and the `draw_mesh` stub. `src/renderer.c` sits at 74% line coverage. What is left is the two functions that want a window and the world globals: - `akgl_render_init2d` populating the camera from the property registry - `akgl_render_2d_draw_world` layer ordering **Note while you are in there:** `defflags` at `src/renderer.c:113` is uninitialised until the `if` body runs. **Files:** `tests/renderer.c`, `src/renderer.c:113` --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 0.9.x milestone 2026-08-02 18:32:46 -04:00
tachikoma added the test-coverageblast-radius:medium labels 2026-08-02 18:32:46 -04:00
tachikoma added the status::grooming label 2026-08-02 18:49:10 -04:00
Sign in to join this conversation.