void getMeshInformation(Mesh* mesh,size_t &vertex_count,Vector3* &vertices,
size_t &index_count, unsigned* &indices,
const Vector3 &position = Vector3::ZERO,
const Quaternion &orient = Quaternion::IDENTITY,const Vector3 &scale = Vector3::UNIT_SCALE)
wtf?
пример использования этой функции в студию.
уж не так ли?
int count_vertices = 0;
int count_indices = 0;
Vector3 *vertices = new Vector3[100500/*wtf*/];
unsigned*intides= new unsigned[100500/*wtf*/];
getMeshInformation(mesh,count_vertices ,vertices , count_indices , indices);