new PIXI.BlobResource (url, autoLoad) overrides
| Name | Type | Attributes | Description |
|---|---|---|---|
url |
string |
the URL of the texture file |
|
autoLoad |
boolean |
<optional> |
whether to fetch the data immediately; you can fetch it later via BlobResource#load |
Extends
Members
The viewable buffer on the data
The URL of the texture file
Methods
load () Promise overrides
Loads the blob
Returns:
| Type | Description |
|---|---|
| Promise |
Inherited Properties
From class PIXI.Resource
destroyed boolean readonly inherited
If resource has been destroyed
- Default Value:
- false
height number readonly inherited
The height of the resource.
valid boolean readonly inherited
Has been validated
width number readonly inherited
The width of the resource.
_height number protected inherited
Internal height of the resource
_width number protected inherited
Internal width of the resource
internal boolean protected inherited
true if resource is created by BaseTexture
useful for doing cleanup with BaseTexture destroy
and not cleaning up resources that were created
externally.
- Default Value:
- false
Inherited Methods
From class PIXI.Resource
bind (baseTexture) void inherited
Bind to a parent BaseTexture
| Name | Type | Description |
|---|---|---|
baseTexture |
PIXI.BaseTexture |
Parent texture |
destroy () void inherited
Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.
resize (width, height) void inherited
Trigger a resize event
| Name | Type | Description |
|---|---|---|
width |
number |
X dimension |
height |
number |
Y dimension |
style (renderer, baseTexture, glTexture) boolean inherited
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 | true is success |
unbind (baseTexture) void inherited
Unbind to a parent BaseTexture
| Name | Type | Description |
|---|---|---|
baseTexture |
PIXI.BaseTexture |
Parent texture |
update () void inherited
Has been updated trigger event
upload (renderer, baseTexture, glTexture) boolean abstract inherited
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 | true is success |
dispose () void protected inherited
Clean up anything, this happens when destroying is ready.