Shaku

Shaku JS

Back To Table of Content

Texture Asset Base

TextureAssetBase

Base type for all texture asset types.

Kind: global class

textureAssetBase.filter

Get texture magnifying filter, or null to use default.

Kind: instance property of TextureAssetBase
See: Shaku.gfx.TextureFilterModes

textureAssetBase.filter

Set texture magnifying filter.

Kind: instance property of TextureAssetBase
See: Shaku.gfx.TextureFilterModes

Param Type Description
value TextureFilterMode Filter mode to use or null to use default.

textureAssetBase.wrapMode

Get texture wrapping mode, or null to use default.

Kind: instance property of TextureAssetBase
See: Shaku.gfx.TextureWrapModes

textureAssetBase.wrapMode

Set texture wrapping mode.

Kind: instance property of TextureAssetBase
See: Shaku.gfx.TextureWrapModes

Param Type Description
value TextureWrapMode Wrapping mode to use or null to use default.

textureAssetBase.image ⇒ Image

Get raw image.

Kind: instance property of TextureAssetBase
Returns: Image - Image instance.

textureAssetBase.width ⇒ Number

Get texture width.

Kind: instance property of TextureAssetBase
Returns: Number - Texture width.

textureAssetBase.height ⇒ Number

Get texture height.

Kind: instance property of TextureAssetBase
Returns: Number - Texture height.

textureAssetBase._glTexture

Get texture instance for WebGL.

Kind: instance property of TextureAssetBase

textureAssetBase.getSize() ⇒ Vector2

Get texture size as a vector.

Kind: instance method of TextureAssetBase
Returns: Vector2 - Texture size.