/* * Copyright (C) 2018 Tomasz Kramkowski * SPDX-License-Identifier: MIT */ #ifndef FMD_H #define FMD_H #include #include "gl.h" #include "vertex.h" typedef GLuint tri[3]; struct fmd { int nverts; struct vertex *verts; int ntris; tri *tris; int nmtls; char **mtls; int nmeshes; struct fmd_mesh { int midx; int tidx; int tcnt; } *meshes; }; void fmd_load(struct fmd *fmd, FILE *f); void fmd_free(struct fmd *fmd); #endif // FMD_H