public void LoadMipMapData(BinaryReaderEx reader) { this.MipMapData = new List <MipMapData>(this.Header.MipMapCount); for (var i = 0; i < this.NumLayers; i++) { MipMapData mipData = new MipMapData(); mipData.Offset = reader.ReadUInt32(Endianness.BigEndian); mipData.Length = reader.ReadInt32(Endianness.BigEndian); this.MipMapData.Add(mipData); } }
public void LoadMipMapData(BinaryReaderEx reader) { this.MipMapData = new List<MipMapData>(this.Header.MipMapCount); for (var i = 0; i < this.NumLayers; i++) { MipMapData mipData = new MipMapData(); mipData.Offset = reader.ReadUInt32(Endianness.BigEndian); mipData.Length = reader.ReadInt32(Endianness.BigEndian); this.MipMapData.Add(mipData); } }