11 struct g3d_vertex *verts;
16 struct bspnode *front, *back;
21 struct bsppoly *soup; /* dynarr: see dynarr.h */
24 int init_bsp(struct bsptree *bsp);
25 void destroy_bsp(struct bsptree *bsp);
27 int save_bsp(struct bsptree *bsp, const char *fname);
28 int load_bsp(struct bsptree *bsp, const char *fname);
30 int bsp_add_poly(struct bsptree *bsp, struct g3d_vertex *v, int vnum);
31 int bsp_add_mesh(struct bsptree *bsp, struct g3d_mesh *m);
33 int bsp_build(struct bsptree *bsp);
35 void draw_bsp(struct bsptree *bsp, float view_x, float view_y, float view_z);
37 #endif /* BSPMESH_H_ */