Canvas element to use
Readonly
destroyedIf resource has been destroyed.
true
if resource is created by BaseTexture
useful for doing cleanup with BaseTexture destroy
and not cleaning up resources that were created
externally.
Readonly
sourceThe source element.
The url of the resource
The height of the resource.
Has been validated
The width of the resource.
Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.
Destroy this PIXI.BaseImageResource
Trigger a resize event
X dimension
Y dimension
Set the style, optional to override
yeah, renderer!
the texture
texture instance for this webgl context
true
is successChecks if source width/height was changed, resize can cause extra baseTexture update. Triggers one update in any case.
Upload the texture to the GPU.
Upload to the renderer
Reference to parent texture
Optional
source: ImageSource(optional)
Static
crossSet cross origin based detecting the url and the crossorigin
Element to apply crossOrigin
URL to check
Optional
crossorigin: string | booleanCross origin value to use
Static
testUsed to auto-detect the type of resource.
The source object
true
if source is HTMLCanvasElement or OffscreenCanvas
Resource type for HTMLCanvasElement and OffscreenCanvas.
Memberof
PIXI