Example #1
0
 /// <summary>Create mesh from arrays.</summary>
 /// <remarks>This is the recommended way of creating them when the data size is small, a few kilobytes.</remarks>
 public static IndexedMesh createIndexedMesh <TVertex, TIndex>(this IRenderDevice device, TVertex[] vertices, TIndex[] indices, string name = null)
     where TVertex : unmanaged
     where TIndex : unmanaged
 {
     return(MeshLoader.createIndexed(device, vertices, indices, name));
 }