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(); }
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(); }
public void UnSerialize(IOReader reader) { this.m_flVecX = reader.ReadFloat(); this.m_flVecY = reader.ReadFloat(); this.m_flVecZ = reader.ReadFloat(); }