1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|