Skip to main content
Version: 1.0.0-preview.47

Velaptor.Content.IAtlasData

Velaptor​

Velaptor.Content​

IAtlasData Interface​

Holds data for a texture atlas.

public interface IAtlasData : Velaptor.Content.IContent

Derived
↳ AtlasData

Implements IContent

Properties​

AtlasDataFilePath​

Gets the file path to the atlas data.

string AtlasDataFilePath { get; }

Property Value​

System.String

SubTextureNames​

Gets the list of frame names.

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

Property Value​

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

Texture​

Gets the texture of the atlas.

Velaptor.Content.ITexture Texture { get; }

Property Value​

ITexture

this[int]​

The iterator for the atlas sub texture data.

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

Parameters​

index System.Int32

The index of the item to retrieve.

Property Value​

AtlasSubTextureData

Methods​

GetFrames(string)​

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

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

Parameters​

subTextureId System.String

The sub texture ID of the frames to return.

Returns​

AtlasSubTextureData[]
The list of frame rectangles.