TerrainRendererSetMesh Method |
Namespace: DigitalRune.Graphics.Rendering
Exception | Condition |
---|---|
ArgumentNullException | mesh is . |
The TerrainRenderer takes ownership of the TerrainRendererMesh instance. When the TerrainRenderer is disposed of, all internally stored TerrainRendererMeshes are disposed of.
If the terrain renderer already has a mesh with the same settings (NumberOfLevels and CellsPerLevel), the old mesh is disposed of and replaced.