Constructor PowerOfTwoTextureAtlas
PowerOfTwoTextureAtlas(int, int, GraphicsFormat, FilterMode, string, bool)
Create a new texture atlas, must have power of two size.
Declaration
public PowerOfTwoTextureAtlas(int size, int mipPadding, GraphicsFormat format, FilterMode filterMode = FilterMode.Point, string name = "", bool useMipMap = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int | size | The size of the atlas in pixels. Must be power of two. |
| int | mipPadding | Amount of mip padding in power of two. |
| GraphicsFormat | format | Atlas texture format |
| FilterMode | filterMode | Atlas texture filter mode. |
| string | name | Name of the atlas |
| bool | useMipMap | Use mip maps |