Ejemplo n.º 1
0
 public MDXTextureUnit(byte[] data)
 {
     using (MemoryStream ms = new MemoryStream(data))
     {
         using (BinaryReader br = new BinaryReader(ms))
         {
             this.Flags                        = (ETextureUnitFlags)br.ReadUInt16();
             this.RenderOrder                  = br.ReadInt16();
             this.SubmeshIndex                 = br.ReadUInt16();
             this.UnknownIndex                 = br.ReadUInt16();
             this.ColorIndex                   = br.ReadInt16();
             this.RenderFlagsIndex             = br.ReadUInt16();
             this.Layer                        = br.ReadUInt16();
             this.OPCount                      = br.ReadUInt16();
             this.TextureLookupTableIndex      = br.ReadUInt16();
             this.TextureUnitLookupTableIndex  = br.ReadUInt16();
             this.TransparencyLookupTableIndex = br.ReadUInt16();
             this.UVAnimationLookupTableIndex  = br.ReadUInt16();
         }
     }
 }
Ejemplo n.º 2
0
 public MDXTextureUnit(byte[] data)
 {
     using (MemoryStream ms = new MemoryStream(data))
     {
         using (BinaryReader br = new BinaryReader(ms))
         {
             this.Flags = (ETextureUnitFlags)br.ReadUInt16();
             this.RenderOrder = br.ReadInt16();
             this.SubmeshIndex = br.ReadUInt16();
             this.UnknownIndex = br.ReadUInt16();
             this.ColorIndex = br.ReadInt16();
             this.RenderFlagsIndex = br.ReadUInt16();
             this.Layer = br.ReadUInt16();
             this.OPCount = br.ReadUInt16();
             this.TextureLookupTableIndex = br.ReadUInt16();
             this.TextureUnitLookupTableIndex = br.ReadUInt16();
             this.TransparencyLookupTableIndex = br.ReadUInt16();
             this.UVAnimationLookupTableIndex = br.ReadUInt16();
         }
     }
 }