pixi.textures.BaseTexture
- type
- class
- extends
- pixi.utils.EventTarget
- subclasses
- pixi.textures.VideoTexture
- metadata
- :native
- "PIXI.BaseTexture"
Static Methods
- parameters
canvas {Canvas} The canvas element source of the texture
scaleMode {Int} Should be one of the PIXI.scaleMode consts
- returns
- BaseTexture
- parameters
imageUrl {String} The image url of the texture
crossorigin {Bool}
scaleMode {Int} Should be one of the PIXI.scaleMode consts
- returns
- BaseTexture
Constructor
- parameters
source {String} the source object (image or canvas)
scaleMode {Int} Should be one of the PIXI.scaleMode consts
- parameters
eventName {String} The name of the event.
data {Dynamic}
- returns
- {Bool} Indication if we've emitted an event.
- parameters
eventName {String} The events that should be listed.
- returns
- {Array} An array of listener functions
- parameters
eventName {String} The event we want to remove.
callback {Function} The listener that we need to find.
- parameters
eventName {String} Name of the event.
callback {Functon} Callback function.
- parameters
eventName {String} Name of the event.
callback {Function} Callback function.
- parameters
eventName {String} The event you want to remove all listeners for.
- parameters
newSrc {String} the path of the image