diff options
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 |
