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
Height
Gets the height of the entire texture atlas texture.
uint Height { get; }
Property Value
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
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
Width
Gets the width of the entire texture atlas texture.
uint Width { get; }
Property Value
Methods
GetFrames(string)
Gets the all of 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.