Base type for all texture asset types.
Kind: global class
Image
Number
Number
Vector2
Get texture magnifying filter, or null to use default.
Kind: instance property of TextureAssetBase
See: Shaku.gfx.TextureFilterModes
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. |
Get texture wrapping mode, or null to use default.
Kind: instance property of TextureAssetBase
See: Shaku.gfx.TextureWrapModes
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. |
Image
Get raw image.
Kind: instance property of TextureAssetBase
Returns: Image
- Image instance.
Number
Get texture width.
Kind: instance property of TextureAssetBase
Returns: Number
- Texture width.
Number
Get texture height.
Kind: instance property of TextureAssetBase
Returns: Number
- Texture height.
Get texture instance for WebGL.
Kind: instance property of TextureAssetBase
Vector2
Get texture size as a vector.
Kind: instance method of TextureAssetBase
Returns: Vector2
- Texture size.