#include "include/mesh.h" enum honey_mesh_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 BAD_VERTEX_DATA; } if (indices == NULL || n_indices == 0) { return BAD_INDEX_DATA; } unsigned int vertex_size = 0; for (int i=0; i