Helper function that creates a base texture from the given canvas element.
Helper function that creates a base texture from the given canvas element.
The canvas element source of the texture
@see PIXI.SCALE_MODES
the base texture
Helper function that creates a base texture from the given image url.
Helper function that creates a base texture from the given image url. If the image is not in the base texture cache it will be created and loaded.
The image url of the texture
Should use anonymous CORS? Defaults to true if the URL is not a data-URI.
@see PIXI.SCALE_MODES
the base texture
BaseTexture Singleton