anm2ed-cli and render tests: look at animations without the editor
- anm2ed-cli info|frame|render: a text summary, one frame as a PNG, or the whole animation as a contact sheet, PNG sequence, GIF or video, drawn by the editor's OpenGL renderer in a hidden window (render::HeadlessGL). - render::animation_frame_render / animation_record draw an animation's layers over its bounds (Canvas::layers_render, also used by About) and record them through the existing Recorder. - The editor's code builds as anm2ed_app, shared by the editor, the CLI and anm2ed_render_tests, which checks a fixture's pixels and golden PNGs (with tolerance; skipped without OpenGL) and leaves its renders in build/renders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
356d74ebb6
commit
2dbbfa5e86
13 files changed
+643
-27
No files matched your search
@@ -54,3 +54,13 @@ cmake --build build -j
|
||||
```sh
|
||||
ctest --test-dir build
|
||||
```
|
||||
Render tests draw with OpenGL (skipped without a display) and leave their images in `build/renders`.
|
||||
|
||||
## Command Line
|
||||
`anm2ed-cli` looks at a file without the editor, drawing with the editor's renderer:
|
||||
```sh
|
||||
anm2ed-cli info file.anm2 # animations, items, spritesheets, Isaac issues
|
||||
anm2ed-cli frame file.anm2 --out frame.png --time 4 # one frame
|
||||
anm2ed-cli render file.anm2 --out sheet.png --scale 3 # every frame in a grid (--type pngs|gif|webm|mp4|ogv)
|
||||
```
|
||||
Common options: `--animation NAME|INDEX`, `--scale`, `--fps`, `--start`/`--end`, `--background RRGGBB`. Run it without arguments for the full list.
|
||||
Reference in new issue
Block a user