Optional
baseThe 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.
Updates the displayed text. Re-renders the texture if the text has changed.
The new text to display.
Static
fromStatic
fromCreates a new Texture
instance from the specified image source.
A new Texture
instance created from the image source.
Reference to the BaseTexture used by this texture.