diff options
| author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-04-12 20:57:06 +0200 |
|---|---|---|
| committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-04-12 20:59:39 +0200 |
| commit | e5af28536bfb0f4c9131df56d2009ba5196f5e3a (patch) | |
| tree | 3ab928f961a1ccd8440b070d7b57f79146457e8c /src/print.h | |
| download | animtool-e5af28536bfb0f4c9131df56d2009ba5196f5e3a.tar.xz | |
init
Diffstat (limited to 'src/print.h')
| -rw-r--r-- | src/print.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/print.h b/src/print.h new file mode 100644 index 0000000..06d6fde --- /dev/null +++ b/src/print.h @@ -0,0 +1,22 @@ +#ifndef ANIMTOOL_PRINT_H_ +#define ANIMTOOL_PRINT_H_ + +#include <stdio.h> +#include "scene.h" +#include "lex.h" + +enum scene_stage +{ + SCENE_PARSED, + SCENE_BOUND, + SCENE_LOADED, +}; + +void print_token(FILE *f, struct token *tok, unsigned int indent); +void print_expr(FILE *f, struct expr *expr); +void print_seq(FILE *f, size_t n_inst, struct seq_inst inst[n_inst], enum scene_stage stage); +void print_surface(FILE *f, struct surface *surf, enum scene_stage stage); +void print_node(FILE *f, struct node *node, enum scene_stage stage, unsigned int indent); +void print_scene(FILE *f, struct scene *scene, enum scene_stage stage); + +#endif |
