TextureAtlas
Holds all the TextureSlice entries of the atlas that was read and loaded in.
Author
Colton Daily
Constructors
Types
Link copied to clipboard
Contains the name,TextureSlice, and the Texture for this entry of the atlas.
Functions
Properties
Extensions
Link copied to clipboard
Combine a TextureSlice with a TextureAtlas into a new TextureAtlas.
Combine a Texture with a TextureAtlas into a new TextureAtlas.
Combine another TextureAtlas with the current atlas to create a new TextureAtlas.
Link copied to clipboard
fun TextureAtlas.createAnimation(prefix: String, action: AnimationBuilder<TextureSlice>.() -> Unit): Animation<TextureSlice>
Create an animation from a prefix of the names of the sprites in a TextureAtlas using an AnimationBuilder to specify the frame index orders and times.
Link copied to clipboard
fun TextureAtlas.getAnimation(prefix: String = "", defaultTimePerFrame: Duration = 100.milliseconds): Animation<TextureSlice>
Creates an animation from a prefix based on the names of the sprites in a TextureAtlas.