Constructor

new(atlasText:String, textureLoader:(path:String) ‑> Texture)

Variables

@:value(new Array<TextureAtlasPage>())pages:Array<TextureAtlasPage> = new Array<TextureAtlasPage>()

An atlas page for each texture.

@:value(new Array<TextureAtlasRegion>())regions:Array<TextureAtlasRegion> = new Array<TextureAtlasRegion>()

The atlas regions across all pages.

Methods

dispose():Void

Disposes texture of each AtlasPage.

findRegion(name:String):Null<TextureAtlasRegion>

Returns the first region found with the specified name, or null if it was not found. String comparison is used to find the region so the result should be cached rather than calling this method multiple times.