Click or drag to resize
DigitalRuneTerrainInvalidate Method (TerrainTile, TerrainLayer)
Invalidates the specified terrain layer in the data cached by the renderer.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public void Invalidate(
	TerrainTile tile,
	TerrainLayer layer
)

Parameters

tile
Type: DigitalRune.GraphicsTerrainTile
The terrain tile owning the terrain layer.
layer
Type: DigitalRune.GraphicsTerrainLayer
The terrain layer which should be invalidated.
Exceptions
ExceptionCondition
ArgumentNullExceptiontile or layer is .
Remarks

This method notifies the renderers that cached data (e.g. terrain clipmaps) needs to be updated.

The Invalidate method or its overloads are called automatically when terrain tiles or layers are added to/removed from the terrain. If any other data that affects the appearance of the terrain is changed, the method Invalidate needs to be called manually.

See Also