示例#1
0
        protected override void DoWrite(System.IO.BinaryWriter writer)
        {
            Magic.Write(writer);
            writer.Write(Version);
            writer.Write(NumVertices);

            for (int i = 0; i < VertexArrays.Length; i++)
            {
                VertexArrays[i].Write(writer);
            }

            writer.Write((Int32)Indices.Length);

            for (int i = 0; i < Indices.Length; i++)
            {
                writer.Write(Indices[i]);
            }

            writer.Write((Int32)Segments.Length);

            for (int i = 0; i < Segments.Length; i++)
            {
                Segments[i].Write(writer);
            }

            BoundCenter.Write(writer);
            writer.Write(BoundRadius);
            BoundMin.Write(writer);
            BoundMax.Write(writer);
        }
示例#2
0
 protected override void DoWrite(System.IO.BinaryWriter writer)
 {
     BaseX.Write(writer);
     BaseY.Write(writer);
     BaseZ.Write(writer);
     Translation.Write(writer);
 }
示例#3
0
        protected override void DoWrite(System.IO.BinaryWriter writer)
        {
            MeshData.Write(writer);

            if (Bones == null)
            {
                writer.Write((Int32)0);
            }
            else
            {
                writer.Write((Int32)Bones.Length);

                for (int i = 0; i < Bones.Length; i++)
                {
                    Bones[i].Write(writer);
                }
            }

            EmissiveColor.Write(writer);
            writer.Write((CastShadow) ? (Byte)1 : (Byte)0);
        }
 protected override void DoWrite(System.IO.BinaryWriter writer)
 {
     Position.Write(writer);
     Rotation.Write(writer);
     Scale.Write(writer);
 }