Exemple #1
0
 public Mesh(VertexSource vertices, IndexSource indices, params MeshSubset[] subsets)
 {
     Vertices = vertices;
     Indices = indices;
     Subsets = subsets;
 }
Exemple #2
0
 public static bool Equals(VertexSource vs1, VertexSource vs2)
 {
     return ReferenceEquals(vs1.Buffer, vs2.Buffer) &&
            vs1.Offset == vs2.Offset &&
            vs1.Stride == vs2.Stride;
 }