pixi.textures.Texture
- type
- class
- subclasses
- pixi.textures.RenderTexture
- metadata
- :native
- "PIXI.Texture"
Static Methods
- parameters
texture
{Texture}
id
{String} the id that the texture will be stored against.
- parameters
canvas
{Canvas} The canvas element source of the texture
scaleMode
{Int} Should be one of the PIXI.scaleMode consts
- returns
- Texture
- parameters
frameId
{String} The frame id of the texture
- returns
- Texture
- parameters
imageUrl
{String} The image url of the texture
crossorigin
{Bool} Whether requests should be treated as crossorigin
scaleMode
{Int} Should be one of the PIXI.scaleMode consts
- returns
- Texture
- parameters
id
{String} the id of the texture to be removed
- returns
- {Texture} the texture that was removed
- parameters
frame
{Rectangle} The frame of the texture to set it to
Constructor
- parameters
baseTexture
{BaseTexture} The base texture source to create the texture from
[frame]
{Rectangle} The rectangle frame of the texture to show
[crop]
{Rectangle} The area of original texture
[trim]
{Rectangle} Trimmed texture rectangle
Instance Methods
- parameters
destroyBase
{Bool} Whether to destroy the base texture as well