Buy Me a Coffee at ko-fi.com

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

Returns the height of this atlas

overload 1:
TextureAtlas.getHeight(): Integer
typings.-672261858
Method PropertyFluent DescriptionRepresentation
Return Value

Returns a vec4 containing the UV of the given sprite
The UV is ordered as U0, V0, U1, V1

overload 1:
TextureAtlas.getSpriteUV(path: String): Vector4
typings.-1808118735typings.2002444081
Method PropertyFluent DescriptionRepresentation
path accepts
Return Value

Returns the width of this atlas

overload 1:
TextureAtlas.getWidth(): Integer
typings.-672261858
Method PropertyFluent DescriptionRepresentation
Return Value

Returns a table with all sprite paths under this atlas

overload 1:
TextureAtlas.listSprites(): Table
typings.80563118
Method PropertyFluent DescriptionRepresentation
Return Value