Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public VBSI(int apiVersion, EventHandler handler, VBSI basis) : this(apiVersion, handler, new SegmentList(handler, basis.Segments))
 {
 }