public static void MakeMeshes(ref Device device, ref ParsedModel pm)
{
pm.Display.meshes = new Mesh[pm.Display.Chunk.Count];
for (int t = 0; t < pm.Display.Chunk.Count; t++)
{
int rawindex = pm.Display.Chunk[t];
pm.Display.meshes[t] = Renderer.MakeMesh(ref pm, rawindex, ref device);
}
}