/* * Copyright (C) 2018 Tomasz Kramkowski * SPDX-License-Identifier: MIT */ #ifndef MODEL_H #define MODEL_H #include "gl.h" #include "fmd.h" #include "mtl.h" struct mesh { mtlidx mtl; struct { GLuint idx; GLuint cnt; } elems; }; struct model { struct mesh *meshes; int nmeshes; GLuint vao; }; void model_load(struct model *mdl, const struct fmd *fmd); void model_render(struct model *mdl); #endif // MODEL_H