Пример #1
0
 public override void Write(FileWriter writer, BxlytHeader header)
 {
     base.Write(writer, header);
     writer.Write(ColorTopLeft.ToBytes());
     writer.Write(ColorTopRight.ToBytes());
     writer.Write(ColorBottomLeft.ToBytes());
     writer.Write(ColorBottomRight.ToBytes());
     writer.Write(MaterialIndex);
     writer.Write(TexCoords != null ? TexCoords.Length : 0);
 }
Пример #2
0
 public override void Write(FileWriter writer, LayoutHeader header)
 {
     base.Write(writer, header);
     writer.Write(ColorTopLeft.ToBytes());
     writer.Write(ColorTopRight.ToBytes());
     writer.Write(ColorBottomLeft.ToBytes());
     writer.Write(ColorBottomRight.ToBytes());
     writer.Write(MaterialIndex);
     writer.Write(TexCoords != null ? (byte)TexCoords.Length : (byte)0);
     writer.Write((byte)0);
     for (int i = 0; i < TexCoords.Length; i++)
     {
         writer.Write(TexCoords[i].TopLeft);
         writer.Write(TexCoords[i].TopRight);
         writer.Write(TexCoords[i].BottomLeft);
         writer.Write(TexCoords[i].BottomRight);
     }
 }