Click or drag to resize
DigitalRuneTerrainRendererSetMesh Method
Adds a new TerrainRendererMesh.

Namespace: DigitalRune.Graphics.Rendering
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public void SetMesh(
	TerrainRendererMesh mesh
)

Parameters

mesh
Type: DigitalRune.Graphics.RenderingTerrainRendererMesh
The terrain mesh.
Exceptions
ExceptionCondition
ArgumentNullExceptionmesh is .
Remarks

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.

See Also