sealed class Tinman.Engine.Components.TerrainBufferOptions

Helper class for creating instances of TerrainBuffer.

Public / Constructors


public constructor TerrainBufferOptions → (1)

textureAtlasCount in : int32

The number of texture atlases (see TextureAtlasCount).

Creates a new instance of TerrainBufferOptions.

Public / Methods


public method CreateTerrainBuffer → ()

returns → TerrainBuffer

The created TerrainBuffer instance.

Creates a new instance of TerrainBuffer, based on these options.


If an I/O error has occurred while initializing the pyramid file cache (see CacheOptions).


public method TextureAtlas → (1)

index in : int32

The texture atlas index.

returns → TextureAtlasOptions

The texture atlas options.

Options for creating the index in-th texture atlas for terrain layer slot textures (see TerrainLayerSlot.TexelPyramid).

Public / Attributes


public attribute CacheOptions → (get,set)

value : PyramidFileCacheOptions

The pyramid file cache options or null to open the pyramid file cache in read-only mode (i.e. for sharing between processes resp. machines).

Options for creating the texture tile cache.

These options are ignored when CachePath is null. Defaults to a fresh instance of a PyramidFileCacheOptions.


public attribute CachePath → (get,set)

value : Path

The texture tile cache path or null.

Path to the texture tile cache.

Specify null to disable texture tile caching. The default value is null.


public attribute Flags → (get,set)

value : TerrainBufferFlags

The flags.

The terrain buffer flags.


public attribute HeightmapLayers → (get,set)

value : HeightmapLayer

The used heightmap layers.

The heightmap layers that are going to be used by terrain meshes.

The default value is HeightmapLayer.All.


public attribute TextureAtlasCount → (get)

value : int32

The texture atlas count

Returns the number of texture atlases.


public attribute VertexCapacity → (get,set)

value : int32

The vertex capacity.

The capacity of the terrain mesh buffer.

The default value is 2097152.


public attribute VertexFormat → (get,set)

value : IVertexFormat

The custom vertex format or null to use the default one.

The custom vertex format to use.

The default value is null.