Provides options for creating instances of TextureAtlas.
sealed class
|
TextureAtlasOptions
|
implements
|
IMemoryConsumption
|
The texture factory to use.
public
property
|
Factory
{
get
set
}
|
||
type
|
ITextureFactory
|
||
value
|
The
texture
factory
or
null . |
Remarks:
If a texture factory has been specified, additional logic is applied:
0
.
The texture format to use.
public
property
|
Format
{
get
set
}
|
||
type
|
TextureFormat
|
||
value
|
|
The texture format. |
Remarks:
Defaults to A8R8G8B8.
Returns the estimated memory consumption of this object.
public
property
|
MemoryConsumption
{
get
}
|
||
type
|
int64
|
||
value
|
|
The estimated memory consumption, in bytes. | |
implements
|
IMemoryConsumption.MemoryConsumption
|
Specifies the maximum video RAM consumption.
public
property
|
MemoryConsumptionMegabytes
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The
maximum
video
RAM
usage,
in
megabytes.
Set
to
0
to
disable
the
limit.
|
Remarks:
Defaults
to
0
(i.e.
no
limit).
Specifies the maximum video RAM consumption.
public
property
|
MemoryConsumptionPercent
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The
maximum
video
RAM
usage,
in
percent
of
available
video
RAM
(see
AvailableVideoMemory).
Set
to
0
to
disable
the
limit.
|
Remarks:
Defaults
to
25%
.
The maximum cache texture size.
public
property
|
TextureSize
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The cache texture size. |
Remarks:
Defaults
to
4096
.
The minimum number of cached tiles.
public
property
|
TileCount
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The minimum number of cached tiles. |
Remarks:
Defaults
to
256
.
See also:
IPyramidBase.TileSizeThe tile size.
public
property
|
TileSize
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The tile size. |
Remarks:
Defaults
to
256
.
See also:
IPyramidBase.TileSizeCreates a new instance of TextureAtlasOptions.
public
constructor
|
TextureAtlasOptions
(ITextureFactory factory = null)
|
||
params
|
factory
|
The
initial
texture
factory
to
use.
Defaults
to
null . |
Creates a new instance of TextureAtlasOptions.
public
constructor
|
TextureAtlasOptions
(TextureAtlasOptions other)
|
||
params
|
other
|
[not-null]
|
The options object to copy from. |
Creates a new instance of TextureAtlas, using the current options.
[OwnerReturn]
|
||||
public
method
|
CreateTextureAtlas
([Owner]
ITexelPyramid pyramid = null)
|
|||
type
|
TextureAtlas
|
|||
params
|
pyramid
|
The
texel
pyramid
to
allocate
as
ID
0 .
If
null ,
no
allocation
will
be
performed.
Defaults
to
null .
|
||
returns
|
|
The created TextureAtlas instance. |
Remarks:
A texture factory must be specified prior to calling this method (see Factory).
Exceptions:
null
.