6 struct g3d_vertex *varr;
11 int load_mesh(struct g3d_mesh *mesh, const char *fname);
13 void zsort_mesh(struct g3d_mesh *mesh);
14 void draw_mesh(struct g3d_mesh *mesh);
16 int gen_cube(struct g3d_mesh *mesh, float sz, int sub);
17 int gen_torus(struct g3d_mesh *mesh, float rad, float ringrad, int usub, int vsub);