TextureAtlas

A texture atlas object, with helper functions related to a texture atlas

TextureAtlas.getHeight

Returns the height of this atlas
overload 1:
TextureAtlas:getHeight()
Method Property Fluent Description Representation
Return Value an Integer

TextureAtlas.getWidth

Returns the width of this atlas
overload 1:
TextureAtlas:getWidth()
Method Property Fluent Description Representation
Return Value an Integer

TextureAtlas.listSprites

Returns a table with all sprite paths under this atlas
overload 1:
TextureAtlas:listSprites()
Method Property Fluent Description Representation
Return Value a table

TextureAtlas.getSpriteUV

Returns a vec4 containing the UV of the given sprite
The UV is ordered as U0,
V0, U1, V1
overload 1:
TextureAtlas:getSpriteUV(path)
Method Property Fluent Description Representation
path accepts a String
Return Value a Vector4
a a