#include "include/mesh.h" honey_result honey_mesh_new(honey_mesh* mesh, float* vertices, unsigned int n_vertices, unsigned int n_attributes, unsigned int* attribute_sizes, unsigned int* indices, unsigned int n_indices) { if (vertices == NULL || n_vertices == 0) { return HONEY_MESH_BAD_VERTEX_DATA; } if (indices == NULL || n_indices == 0) { return HONEY_MESH_BAD_INDEX_DATA; } unsigned int vertex_size = 0; for (int i=0; i