HeightmapRegionPyramid

Description

sealed class Tinman.Terrain.Pyramids.HeightmapRegionPyramid

Derived from

PixelPyramid abstract

A PixelPyramid that colors those areas that are covered by IHeightmap objects.

Public / Constructors

HeightmapRegionPyramid


public constructor HeightmapRegionPyramid → (1)

type in : MapType

The map type to use.

Creates a new instance of HeightmapRegionPyramid.

The full size of the pyramid is always MappingUtil.MaxSize.

Public / Methods

LayerAdd


public method LayerAdd → (2)

heightmap in : IHeightmap

[not-null]
The heightmap.

color in : int64

The color to use.

Sets the color to use for those areas that are covered by the given heightmap.

LayerClear


public method LayerClear → ()

Removes all heightmaps.

LayerRemove


public method LayerRemove → (1)

heightmap in : IHeightmap

[not-null]
The heightmap which region layer to remove.

Removes the region layer of the given heightmap.