Exemple #1
0
        public static VBSI FromMLOD(MLOD mlod, GenericRCOLResource.GenericRCOLResource container)
        {
            VBSI vbsi = new VBSI(null);

            foreach (MLOD.Mesh mesh in mlod.Meshes)
            {
                VRTF vrtf = (VRTF)GenericRCOLResource.GenericRCOLResource.ChunkReference.GetBlock(container, mesh.VertexFormatIndex);
                vbsi.Segments.Add(SegmentInfo.FromMesh(mesh, vrtf));
            }
            return(vbsi);
        }
Exemple #2
0
 public VBSI(EventHandler handler, VBSI basis) : this(handler, new SegmentList(handler, basis.Segments))
 {
 }