Пример #1
0
 public void WriteBuffers(NGUI.Meshing.MeshBuffer target)
 {
     if (this.primSize > 0)
     {
         int start = 0;
         int index = 0;
         while (index < (this.primSize - 1))
         {
             this.primitives[index].Copy(ref start, this.v, this.primitives[index + 1].start, target);
             index++;
         }
         this.primitives[index].Copy(ref start, this.v, this.vSize, target);
     }
 }
Пример #2
0
 public void WriteBuffers(Vector3[] transformedVertexes, NGUI.Meshing.MeshBuffer target)
 {
     if (transformedVertexes == null)
     {
         this.WriteBuffers(target);
     }
     else if (this.primSize > 0)
     {
         int start = 0;
         int index = 0;
         while (index < (this.primSize - 1))
         {
             this.primitives[index].Copy(ref start, this.v, transformedVertexes, this.primitives[index + 1].start, target);
             index++;
         }
         this.primitives[index].Copy(ref start, this.v, transformedVertexes, this.vSize, target);
     }
 }