X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmesh.h;h=410863a74358b0fdfcb3a5fcfa3876ea1bdf769b;hb=HEAD;hp=7744ae7de50c5c3af195451e2d99effae71cd673;hpb=ae96c724e905181ca10441a63b1dfe9c2fc5d2ea;p=dosdemo diff --git a/src/mesh.h b/src/mesh.h deleted file mode 100644 index 7744ae7..0000000 --- a/src/mesh.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef MESH_H_ -#define MESH_H_ - -#include "inttypes.h" - -struct g3d_mesh { - int prim; - struct g3d_vertex *varr; - uint16_t *iarr; - int vcount, icount; -}; - -void free_mesh(struct g3d_mesh *mesh); -void destroy_mesh(struct g3d_mesh *mesh); - -int load_mesh(struct g3d_mesh *mesh, const char *fname); -int save_mesh(struct g3d_mesh *mesh, const char *fname); - -void zsort_mesh(struct g3d_mesh *mesh); -void draw_mesh(struct g3d_mesh *mesh); - -void apply_mesh_xform(struct g3d_mesh *mesh, const float *xform); -int append_mesh(struct g3d_mesh *ma, struct g3d_mesh *mb); -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); - -#endif /* MESH_H_ */