예제 #1
0
 public MDXTexture(byte[] data)
 {
     using (MemoryStream ms = new MemoryStream(data))
     {
         using (BinaryReader br = new BinaryReader(ms))
         {
             this.TextureType    = (ETextureType)br.ReadUInt32();
             this.Flags          = (ETextureFlags)br.ReadUInt32();
             this.FilenameLength = br.ReadUInt32();
             this.FilenameOffset = br.ReadUInt32();
         }
     }
 }
예제 #2
0
 public MDXTexture(byte[] data)
 {
     using (MemoryStream ms = new MemoryStream(data))
     {
         using (BinaryReader br = new BinaryReader(ms))
         {
             this.TextureType = (ETextureType)br.ReadUInt32();
             this.Flags = (ETextureFlags)br.ReadUInt32();
             this.FilenameLength = br.ReadUInt32();
             this.FilenameOffset = br.ReadUInt32();
         }
     }
 }