Optional
base: BaseTextureThe BaseTexture to be used by the texture.
Optional
baseReference to the BaseTexture used by this texture.
The height of the clipped region.
The width of the clipped region.
The x-coordinate of the top-left corner of the clipped region.
The y-coordinate of the top-left corner of the clipped region.
The height of the texture.
Protected
scaleImage scaling factor
The width of the texture.
Clone the current texture
A new Texture
instance with the same base texture reference.
Converts the current texture into a spritesheet.
The width of each sprite in the spritesheet.
The height of each sprite in the spritesheet.
An array of Texture
instances representing the sprites in the spritesheet.
Sets the region of the texture to be used for rendering.
The x-coordinate of the top-left corner of the region.
The y-coordinate of the top-left corner of the region.
The width of the region.
The height of the region.
Static
fromCreates a new Texture
instance from the specified image source.
A new Texture
instance created from the image source.
Static
from
Creates a new
Texture
instance with the specified base texture reference.