Exemplo n.º 1
0
 public TextureInfo(uint offset)
 {
     Flag           = Trb.SectFile.ReadUInt32();
     FileNameOffset = offset + Trb.SectFile.ReadUInt32();
     FileName       = ReadHelper.ReadStringFromOffset(Trb.SectFile, FileNameOffset);
     DdsSize        = Trb.SectFile.ReadUInt32();
     DdsOffset      = offset + Trb.SectFile.ReadUInt32();
     RawImage       = ReadHelper.ReadFromOffset(Trb.SectFile, DdsSize, DdsOffset);
     Dds            = new DDSImage(RawImage);
 }