Name | Type | Default | Description |
---|---|---|---|
width |
number | 0 |
optional
Width of the resource |
height |
number | 0 |
optional
Height of the resource |
Members
-
Internal height of the resource
-
Internal width of the resource
-
If resource has been destroyed
- Default Value:
- false
-
The height of the resource.
-
Mini-runner for handling resize events
-
Mini-runner for handling update events
-
Has been validated
-
The width of the resource.
Methods
-
Bind to a parent BaseTexture
Name Type Description baseTexture
PIXI.BaseTexture Parent texture
-
Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.
-
Clean up anything, this happens when destroying is ready.
-
This can be overriden to start preloading a resource or do any other prepare step.
Returns:
Type Description Promise Handle the validate event -
Trigger a resize event
-
Set the style, optional to override
Name Type Description renderer
PIXI.Renderer yeah, renderer!
baseTexture
PIXI.BaseTexture the texture
glTexture
PIXI.glCore.Texture texture instance for this webgl context
Returns:
Type Description boolean true
is success -
Unbind to a parent BaseTexture
Name Type Description baseTexture
PIXI.BaseTexture Parent texture
-
Has been updated trigger event
-
Uploads the texture or returns false if it cant for some reason. Override this.
Name Type Description renderer
PIXI.Renderer yeah, renderer!
baseTexture
PIXI.BaseTexture the texture
glTexture
PIXI.glCore.Texture texture instance for this webgl context
Returns:
Type Description boolean true is success