diff options
author | sanine-a <sanine.not@pm.me> | 2020-10-19 05:35:06 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-10-19 05:35:06 -0500 |
commit | 41fa908dc15b522e53946a716f4f6c00520bd46f (patch) | |
tree | bc8176462000b2c77c00d3227037c1acbb13e0ee /src/model/model.h | |
parent | 2d046ffd16d8ff3a06f92ca438ca6b2d6842ce6a (diff) |
add honey libraries back and reorganize directories
Diffstat (limited to 'src/model/model.h')
-rw-r--r-- | src/model/model.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/model/model.h b/src/model/model.h new file mode 100644 index 0000000..3672a44 --- /dev/null +++ b/src/model/model.h @@ -0,0 +1,29 @@ +#ifndef HONEY_MODEL_H +#define HONEY_MODEL_H + +#include "../common.h" +#include "../mesh/mesh.h" +#include "../shader/shader.h" + +/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +#define HONEY_MODEL_MAX_MESHES 32 + +typedef struct { + mat4 model_matrix; + honey_mesh meshes[HONEY_MODEL_MAX_MESHES]; + unsigned int n_meshes; +} honey_model; + +/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +/** @brief Load a model. + * + * @param[out] model Pointer to the destination honey_model struct. + * @param[in] path Path of the model to be loaded. + */ +honey_result honey_model_load(honey_model* model, char* path); +void honey_model_draw(honey_model* model, honey_shader shader); +void honey_model_delete(honey_model* model); + +#endif |