PIXI.BlobResource
class BlobResource extends PIXI.Resource
Resource that fetches texture data over the network and stores it in a buffer.
Constructor
new PIXI.BlobResource(source: string, options: PIXI.IBlobOptions) → {}
| Name | Type | Attributes | Description |
|---|---|---|---|
| source | string |
the URL of the texture file |
|
| options | PIXI.IBlobOptions | ||
| options.autoLoad | boolean |
<optional> |
whether to fetch the data immediately; you can fetch it later via BlobResource#load |
| options.width | boolean |
<optional> |
the width in pixels. |
| options.height | boolean |
<optional> |
the height in pixels. |
Summary
Methods from BlobResource
| Promise<PIXI.Resource> |
Loads the blob |
Properties inherited from Resource
| boolean |
|
| number |
|
| boolean |
|
| string |
The url of the resource |
| boolean |
|
| number |
|
| number |
Internal height of the resource. |
| number |
Internal width of the resource. |
Methods inherited from Resource
| void |
|
| void |
|
| void |
Clean up anything, this happens when destroying is ready. |
| void |
|
| boolean |
|
| void |
|
| void |
Has been updated trigger event. |
| boolean |
|
Public Properties
Public Methods
load() → {Promise<PIXI.Resource>}
Loads the blob
| Type | Description |
|---|---|
| Promise<PIXI.Resource> |