Returns a TextureAtlas.

(texture-atlas "packed.txt")
Options
:add-region^String name, ^Texture texture, ^int x, ^int y, ^int width, ^int height
Adds a region to the atlas. The specified texture will be disposed when the atlas is disposed.
:add-region^String name, ^TextureRegion texture-region
Adds a region to the atlas. The texture for the specified region will be disposed when the atlas is disposed.
:create-patch^String name
Returns the first region found with the specified name as a {@link NinePatch}. The region must have been packed with ninepatch splits. This method uses string comparison to find the region and constructs a new ninepatch, so the result should be cached rather than calling this method multiple times.
:create-sprite^String name
Returns the first region found with the specified name as a sprite. If whitespace was stripped from the region when it was packed, the sprite is automatically positioned as if whitespace had not been stripped. This method uses string comparison to find the region and constructs a new sprite, so the result should be cached rather than calling this method multiple times.
:create-sprite^String name, ^int index
Returns the first region found with the specified name and index as a sprite. This method uses string comparison to find the region and constructs a new sprite, so the result should be cached rather than calling this method multiple times.
:create-sprites
Returns all regions in the atlas as sprites. This method creates a new sprite for each region, so the result should be stored rather than calling this method multiple times.
:create-sprites^String name
Returns all regions with the specified name as sprites, ordered by smallest to largest {@link AtlasRegion#index index}. This method uses string comparison to find the regions and constructs new sprites, so the result should be cached rather than calling this method multiple times.
:dispose
Releases all resources associated with this TextureAtlas instance. This releases all the textures backing all TextureRegions and Sprites, which should no longer be used after calling dispose.
:find-region^String name
Returns the first region found with the specified name. This method uses string comparison to find the region, so the result should be cached rather than calling this method multiple times.
:find-region^String name, ^int index
Returns the first region found with the specified name and index. This method uses string comparison to find the region, so the result should be cached rather than calling this method multiple times.
:find-regions^String name
Returns all regions with the specified name, ordered by smallest to largest {@link AtlasRegion#index index}. This method uses string comparison to find the regions, so the result should be cached rather than calling this method multiple times.
:get-regions
Returns all regions in the atlas.
:get-textures
Source
(defn texture-atlas*
  [^String path]
  (or (u/load-asset path TextureAtlas)
      (TextureAtlas. path)))
(defmacro texture-atlas
  [path & options]
  `(let [^TextureAtlas object# (texture-atlas* ~path)]
     (u/calls! object# ~@options)
     object#))