public static VBSI FromMLOD(MLOD mlod, GenericRCOLResource container) { var vbsi = new VBSI(0, null); foreach (var mesh in mlod.Meshes) { var vrtf = (VRTF)GenericRCOLResource.ChunkReference.GetBlock(container, mesh.VertexFormatIndex); vbsi.Segments.Add(SegmentInfo.FromMesh(mesh, vrtf)); } return(vbsi); }
public VBSI(int apiVersion, EventHandler handler, VBSI basis) : this(apiVersion, handler, new SegmentList(handler, basis.Segments)) { }