Example #1
0
 protected override void _Write(BinaryWriter writer)
 {
     Offset = (uint)writer.BaseStream.Position;
     writer.Write(Identifier);
     writer.Write(EntrySize);
     TextureID.Write(writer);
     if (WriteTextureBuffer)
     {
         Texture.WriteBuffer(writer);
     }
     else
     {
         Texture.Write(writer);
     }
     writer.Write((UInt64)0); //Padding
     EntrySize = (uint)(writer.BaseStream.Position - Offset);
     writer.BaseStream.Seek(Offset + 4, SeekOrigin.Begin);
     writer.Write(EntrySize);
     writer.BaseStream.Seek(Offset + EntrySize, SeekOrigin.Begin);
 }
Example #2
0
 public void WriteTextureID(BinaryWriter writer)
 {
     TextureID.Write(writer);
 }
Example #3
0
 public void WriteHeader(BinaryWriter writer)
 {
     writer.Write(Identifier);
     writer.Write(EntrySize);
     TextureID.Write(writer);
 }