Skip to main content
Version: 1.0.0-preview.42

Velaptor.Content.AtlasData

Velaptor​

Velaptor.Content​

AtlasData Class​

Holds data relating to a texture atlas.

public sealed class AtlasData :
Velaptor.Content.IAtlasData,
Velaptor.Content.IContent

Inheritance System.Object → AtlasData

Implements IAtlasData, IContent

Properties​

AtlasDataFilePath​

Gets the file path to the atlas data.

public string AtlasDataFilePath { get; }

Implements AtlasDataFilePath

Property Value​

System.String

FilePath​

Gets the path to the texture.

public string FilePath { get; }

Implements FilePath

Property Value​

System.String

Height​

Gets the height of the entire texture atlas texture.

public uint Height { get; }

Implements Height

Property Value​

System.UInt32

Name​

Gets the name of the atlas.

public string Name { get; }

Implements Name

Property Value​

System.String

SubTextureNames​

Gets a list of unique sub texture names.

public System.Collections.Generic.IReadOnlyCollection<string> SubTextureNames { get; }

Implements SubTextureNames

Property Value​

System.Collections.Generic.IReadOnlyCollection<System.String>

Remarks​

Will not return duplicate names of animating sub textures.
Animating sub textures will have identical names.

Texture​

Gets the texture of the atlas.

public Velaptor.Content.ITexture Texture { get; }

Implements Texture

Property Value​

ITexture

this[int]​

The iterator for the atlas sub texture data.

public Velaptor.Graphics.AtlasSubTextureData this[int index] { get; }

Parameters​

index System.Int32

The index of the item to retrieve.

Implements [thisint

Property Value​

AtlasSubTextureData

Width​

Gets the width of the entire texture atlas texture.

public uint Width { get; }

Implements Width

Property Value​

System.UInt32

Methods​

GetFrames(string)​

Gets the all the frames that have the given sub texture id.

public Velaptor.Graphics.AtlasSubTextureData[] GetFrames(string subTextureId);

Parameters​

subTextureId System.String

The sub texture ID of the frames to return.

Implements GetFrames(string)

Returns​

AtlasSubTextureData[]
The list of frame rectangles.