HaloMap.RawData.ParsedModel.DisplayedInfo.MakeMeshes C# (CSharp) Method

MakeMeshes() public static method

The make meshes.
public static MakeMeshes ( Device &device, ParsedModel &pm ) : void
device Device The device.
pm ParsedModel The pm.
return void
            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);
                }
            }