8 struct g3d_vertex *varr;
13 int load_mesh(struct g3d_mesh *mesh, const char *fname);
14 int save_mesh(struct g3d_mesh *mesh, const char *fname);
16 void zsort_mesh(struct g3d_mesh *mesh);
17 void draw_mesh(struct g3d_mesh *mesh);
19 void apply_mesh_xform(struct g3d_mesh *mesh, const float *xform);
20 int append_mesh(struct g3d_mesh *ma, struct g3d_mesh *mb);
21 int indexify_mesh(struct g3d_mesh *mesh);
23 void normalize_mesh_normals(struct g3d_mesh *mesh);
25 int gen_plane_mesh(struct g3d_mesh *mesh, float width, float height, int usub, int vsub);
26 int gen_cube_mesh(struct g3d_mesh *mesh, float sz, int sub);
27 int gen_torus_mesh(struct g3d_mesh *mesh, float rad, float ringrad, int usub, int vsub);