| TerrainInvalidate Method (TerrainTile, TerrainLayer) |
Invalidates the specified terrain layer in the data cached by the renderer.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public void Invalidate(
TerrainTile tile,
TerrainLayer layer
)
Public Sub Invalidate (
tile As TerrainTile,
layer As TerrainLayer
)
public:
void Invalidate(
TerrainTile^ tile,
TerrainLayer^ layer
)
member Invalidate :
tile : TerrainTile *
layer : TerrainLayer -> unit
Parameters
- tile
- Type: DigitalRune.GraphicsTerrainTile
The terrain tile owning the terrain layer. - layer
- Type: DigitalRune.GraphicsTerrainLayer
The terrain layer which should be invalidated.
Exceptions 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