Skip to main content
Version: 1.0.0-preview.36

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

Height

Gets the height of the entire texture atlas texture.

uint Height { get; }

Property Value

System.UInt32

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 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

Width

Gets the width of the entire texture atlas texture.

uint Width { get; }

Property Value

System.UInt32

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.