new PIXI.CanvasPrepare (renderer) overrides
Name | Type | Description |
---|---|---|
renderer |
PIXI.CanvasRenderer |
A reference to the current renderer |
Extends
Members
An offline canvas to render textures to
The context to the canvas
Methods
destroy () void overrides
Destroys the plugin, don't use after this
Inherited Properties
From class PIXI.BasePrepare
addHooks Array<Function> inherited
Collection of additional hooks for finding assets.
completes Array<Function> inherited
Callback to call after completed.
ticking boolean inherited
If prepare is ticking (running).
uploadHooks Array<Function> inherited
Collection of additional hooks for processing assets.
queue Array<any> protected inherited
Collection of items to uploads at once.
renderer PIXI.AbstractRenderer protected inherited
Reference to the renderer.
uploadHookHelper any protected inherited
The only real difference between CanvasPrepare and Prepare is what they pass to upload hooks. That different parameter is stored here.
Inherited Methods
From class PIXI.BasePrepare
add (item) this inherited
Manually add an item to the uploading queue.
Name | Type | Description |
---|---|---|
item |
PIXI.DisplayObject | PIXI.Container | PIXI.BaseTexture | PIXI.Texture | PIXI.Graphics | PIXI.Text | unknown |
Object to add to the queue |
Returns:
Type | Description |
---|---|
this | Instance of plugin for chaining. |
registerFindHook (addHook) this inherited
Adds hooks for finding items.
Name | Type | Description |
---|---|---|
addHook |
Function |
Function call that takes two parameters: |
Returns:
Type | Description |
---|---|
this | Instance of plugin for chaining. |
registerUploadHook (uploadHook) this inherited
Adds hooks for uploading items.
Name | Type | Description |
---|---|---|
uploadHook |
Function |
Function call that takes two parameters: |
Returns:
Type | Description |
---|---|
this | Instance of plugin for chaining. |
upload (item, done) void inherited
Upload all the textures and graphics to the GPU.
Name | Type | Attributes | Description |
---|---|---|---|
item |
Function | PIXI.DisplayObject | PIXI.Container | PIXI.BaseTexture | PIXI.Texture | PIXI.Graphics | PIXI.Text |
Either the container or display object to search for items to upload, the items to upload themselves,
or the callback function, if items have been added using |
|
done |
Function |
<optional> |
Optional callback when all queued uploads have completed |