ICanvasContent

Description

interface Tinman.Terrain.Tools.ICanvasContent

Derived from

IDisposable

Extended by

CanvasContent sealed

Base interface for creating content for heightmap canvas blocks.

Public / Methods

Create


public method Create → (2)

cacheIndex in : int32

[>=0]
The cache index of the canvas block.

pixels in : ColorBuffer

[not-null]
The pixel contents. The given pixel buffer will have a width and height equal to ICanvasBlockSize.BlockSize.

Creates content for a canvas block.

RenderException

If a graphics subsystem error has occurred.

Delete


public method Delete → (1)

cacheIndex in : int32

[>=0]
The cache index of the canvas block.

Deletes content for a canvas block.

Reset


public method Reset → (1)

cacheSize in : int32

[>0]
The cache size, in blocks (see Canvas.CacheSize).

Resets the canvas content cache.