Name | Type | Default | Description |
---|---|---|---|
width |
number | 0 |
Width of the resource |
height |
number | 0 |
Height of the resource |
Members
If resource has been destroyed.
- Default Value:
- false
The height of the resource.
true
if resource is created by BaseTexture
useful for doing cleanup with BaseTexture destroy
and not cleaning up resources that were created
externally.
The url of the resource
Has been validated
The width of the resource.
Internal height of the resource.
Internal width of the resource.
Methods
Abstract, used to auto-detect resource type.
Name | Type | Attributes | Description |
---|---|---|---|
_source |
unknown |
The source object |
|
_extension |
string |
<optional> |
The extension of source, if set |
Returns:
Type | Description |
---|---|
boolean |
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.
Trigger a resize event
Name | Type | Description |
---|---|---|
width |
number |
X dimension |
height |
number |
Y dimension |
Set the style, optional to override
Name | Type | Description |
---|---|---|
_renderer |
PIXI.Renderer |
yeah, renderer! |
_baseTexture |
PIXI.BaseTexture |
the texture |
_glTexture |
PIXI.GLTexture |
texture instance for this webgl context |
Returns:
Type | Description |
---|---|
boolean |
|
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.GLTexture |
texture instance for this webgl context |
Returns:
Type | Description |
---|---|
boolean |
|
load () Promise<PIXI.Resource> protected
This can be overridden to start preloading a resource or do any other prepare step.
Returns:
Type | Description |
---|---|
Promise<PIXI.Resource> | Handle the validate event |