TextureAtlasOptions
Description
- Derived from
Provides options for creating instances of TextureAtlas.
The ISrgb.Srgb value depicts the value of TextureAtlas.IsSrgb and defaults to true
.
Public / Constructors
TextureAtlasOptions
2 overloads
Creates a new instance of TextureAtlasOptions.
Creates a new instance of TextureAtlasOptions.
Public / Methods
CreateTextureAtlas
Creates a new instance of TextureAtlas, using the current options.
A texture factory must be specified prior to calling this method (see Factory).
- RenderException
-
If a graphics subsystem error has occurred.
Public / Attributes
Factory
The texture factory to use.
If a texture factory has been specified, additional logic is applied:
-
Format:
The ITextureFactory.ValidateTextureFormat is used to validate the given texture format. -
TextureSize:
TileSize:
The ITextureFactory.ValidateTextureSize is used to validate the given size value. -
IMemoryConsumption.MemoryConsumption:
A correct estimate is computed from ITextureFactory.AvailableVideoMemory, instead of returning0
.
TextureNullColor
Uniform color to use for the special NULL
texture, which will be used by TextureAtlas.TileSetup if the given tile is invalid.
The default value is 0
(i.e. transparent black).