コード例 #1
0
ファイル: VTFFile.cs プロジェクト: CRACKbomber/Source360
 public void UnSerialize(IOReader reader)
 {
     // Make sure we are reading big endian
     reader.ByteOrder = Endian.Big;
     this.Flags = (VTFFlags)reader.ReadInt();
     this.Width = reader.ReadUShort();
     this.Height = reader.ReadUShort();
     this.Depth = reader.ReadUShort();
     this.NumFrames = reader.ReadUShort();
     this.PreloadSize = reader.ReadUShort();
     this.MipSkipCount = reader.ReadByte();
     this.NumResources = reader.ReadByte();
     this.Reflectivity.UnSerialize(reader);
     this.BumpScale = reader.ReadFloat();
     this.ImageFormat = (VTFImageFormat)reader.ReadInt();
     this.LowResImgSmple = reader.ReadBytes(4);
     this.CompressedSize = reader.ReadUInt();
 }
コード例 #2
0
ファイル: VTFFile.cs プロジェクト: CRACKbomber/Source360
 public void UnSerialize(IOReader reader)
 {
     this.Width = reader.ReadUShort();
     this.Height = reader.ReadUShort();
     this.Flags = (VTFFlags)reader.ReadInt();
     this.NumFrames = reader.ReadUShort();
     this.StartFrame = reader.ReadUShort();
     this.Reflectivity.UnSerialize(reader);
     this.BumpScale = reader.ReadFloat();
     this.ImageFormat = (VTFImageFormat)reader.ReadInt();
     this.NumMipLevels = reader.ReadByte();
     this.LowResImgFmt = (VTFImageFormat)reader.ReadInt();
     this.LowResImgWidth = reader.ReadByte();
     this.LowResImgHeight = reader.ReadByte();
 }