Helper class for creating instances of TerrainBuffer.
sealed class
|
TerrainBufferOptions
|
Options for creating the texture tile cache.
public
property
|
CacheOptions
{
get
set
}
|
||
type
|
PyramidFileCacheOptions
|
||
value
|
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).
|
Remarks:
These
options
are
ignored
when
CachePath
is
null
.
Defaults
to
a
fresh
instance
of
a
PyramidFileCacheOptions.
Path to the texture tile cache.
public
property
|
CachePath
{
get
set
}
|
||
type
|
Path
|
||
value
|
The
texture
tile
cache
path
or
null . |
Remarks:
Specify
null
to
disable
texture
tile
caching.
The
default
value
is
null
.
See also:
PyramidFileCache.CreateThe terrain buffer flags.
public
property
|
Flags
{
get
set
}
|
||
type
|
TerrainBufferFlags
|
||
value
|
The flags. |
Remarks:
Defaults to None
The heightmap layers that are going to be used by terrain meshes.
public
property
|
HeightmapLayers
{
get
set
}
|
||
type
|
HeightmapLayer
|
||
value
|
The used heightmap layers. |
Remarks:
The default value is All.
Options for creating the texture atlas for opaque imagery (i.e. 1-bit alpha or less).
public
property
|
TextureAtlasOpaque
{
get
}
|
||
type
|
TextureAtlasOptions
|
||
value
|
|
The texture atlas options. |
Options for creating the texture atlas for transparent imagery (i.e. 2-bits alpha or more).
public
property
|
TextureAtlasTransparent
{
get
}
|
||
type
|
TextureAtlasOptions
|
||
value
|
|
The texture atlas options. |
The capacity of the terrain mesh buffer.
public
property
|
VertexCapacity
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The vertex capacity. |
Remarks:
The
default
value
is
2097152
.
Creates a new instance of TerrainBufferOptions.
public
constructor
|
TerrainBufferOptions
()
|
Creates a new instance of TerrainBuffer, based on these options.
[OwnerReturn]
|
||||
public
method
|
CreateTerrainBuffer
()
|
|||
type
|
TerrainBuffer
|
|||
returns
|
|
The created TerrainBuffer instance. |