Ejemplo n.º 1
0
        private static void SerializeIndexBuffer(MeshData mesh, Stream outStream)
        {
            var indexStream = new IndexBufferStream(outStream, IndexBufferFormat.UInt16);

            foreach (var index in mesh.Indexes)
            {
                indexStream.WriteIndex(index);
            }
            StreamUtil.Align(outStream, 4);
        }
 private static void SerializeIndexBuffer(MeshData mesh, Stream outStream)
 {
     var indexStream = new IndexBufferStream(outStream, IndexBufferFormat.UInt16);
     foreach (var index in mesh.Indexes)
         indexStream.WriteIndex(index);
     StreamUtil.Align(outStream, 4);
 }