Shaku

Shaku JS

Back To Table of Content

Texture In Atlas Asset

TextureInAtlasAsset

A texture that is part of a texture atlas. Stores a texture that was generated by the texture atlas + the source rectangle in texture for this segment.

Kind: global class

textureInAtlasAsset.sourceRectangle ⇒ Rectangle

Return the source rectangle in texture atlas.

Kind: instance property of TextureInAtlasAsset
Returns: Rectangle - Source rectangle.

textureInAtlasAsset.sourceRectangleNormalized ⇒ Rectangle

Return the source rectangle in texture atlas, in normalized 0.0-1.0 values.

Kind: instance property of TextureInAtlasAsset
Returns: Rectangle - Source rectangle.

textureInAtlasAsset.texture ⇒ TextureAsset

Return the texture asset of this atlas texture.

Kind: instance property of TextureInAtlasAsset
Returns: TextureAsset - Texture asset.

textureInAtlasAsset.atlas ⇒ TextureAtlasAsset

Return the texture atlas class.

Kind: instance property of TextureInAtlasAsset
Returns: TextureAtlasAsset - Parent atlas.

textureInAtlasAsset.image

Kind: instance property of TextureInAtlasAsset

textureInAtlasAsset.width

Kind: instance property of TextureInAtlasAsset

textureInAtlasAsset.height

Kind: instance property of TextureInAtlasAsset

textureInAtlasAsset._glTexture

Kind: instance property of TextureInAtlasAsset

textureInAtlasAsset.valid

Kind: instance property of TextureInAtlasAsset

textureInAtlasAsset.destroy()

Kind: instance method of TextureInAtlasAsset