X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fmesh.h;h=410863a74358b0fdfcb3a5fcfa3876ea1bdf769b;hp=eb0256dd11ea79978976e12c926b3aa9b4816482;hb=d956a9d9273eebfacfda58cb3bafff017269d5dc;hpb=1883deae4194ed84395bfb1102555b803a4f28e2 diff --git a/src/mesh.h b/src/mesh.h index eb0256d..410863a 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -10,6 +10,11 @@ struct g3d_mesh { int vcount, icount; }; +void free_mesh(struct g3d_mesh *mesh); +void destroy_mesh(struct g3d_mesh *mesh); + +int copy_mesh(struct g3d_mesh *dest, struct g3d_mesh *src); + int load_mesh(struct g3d_mesh *mesh, const char *fname); int save_mesh(struct g3d_mesh *mesh, const char *fname); @@ -22,6 +27,7 @@ int indexify_mesh(struct g3d_mesh *mesh); void normalize_mesh_normals(struct g3d_mesh *mesh); +int gen_sphere_mesh(struct g3d_mesh *mesh, float rad, int usub, int vsub); int gen_plane_mesh(struct g3d_mesh *mesh, float width, float height, int usub, int vsub); int gen_cube_mesh(struct g3d_mesh *mesh, float sz, int sub); int gen_torus_mesh(struct g3d_mesh *mesh, float rad, float ringrad, int usub, int vsub);