Exemple #1
0
 /// <summary>
 /// Populates a voxel buffer with the current face data.
 /// </summary>
 /// <param name="buff">The buffer.</param>
 public void PopulateBuffer(VoxelBuffer buff)
 {
     buff.Dispose();
     if (_vertices.Count > 0)
     {
         buff.SetData(_vertices.ToArray());
     }
 }
Exemple #2
0
 /// <summary>
 /// Populates a voxel buffer with the current face data.
 /// </summary>
 /// <param name="buff">The buffer.</param>
 public void PopulateBuffer( VoxelBuffer buff )
 {
     buff.Dispose();
     if ( _vertices.Count > 0 )
     {
         buff.SetData( _vertices.ToArray() );
     }
 }
Exemple #3
0
 /// <summary>
 /// Disposes of this chunk.
 /// </summary>
 /// <param name="disposing"></param>
 private void Dispose(bool disposing)
 {
     _terrain.Dispose();
 }