| Name | Type | Description |
|---|---|---|
renderer |
PIXI.CanvasRenderer |
A reference to the current renderer |
Extends
Members
-
limiter PIXI.prepare.CountLimiter | PIXI.prepare.TimeLimiter inherited
-
The limiter to be used to control how quickly items are prepared.
-
renderer PIXI.AbstractRenderer protected inherited
-
Reference to the renderer.
-
uploadHookHelper PIXI.prepare.CanvasPrepare | PIXI.Renderer protected inherited overrides
-
The only real difference between CanvasPrepare and WebGLPrepare is what they pass to upload hooks. That different parameter is stored here.
Methods
-
add (item)PIXI.CanvasPrepare inherited
-
Manually add an item to the uploading queue.
Name Type Description itemPIXI.DisplayObject | PIXI.Container | PIXI.BaseTexture | PIXI.Texture | PIXI.Graphics | PIXI.Text | * Object to add to the queue
Returns:
Type Description PIXI.CanvasPrepare Instance of plugin for chaining. -
destroy () overrides
-
Destroys the plugin, don't use after this.
-
registerFindHook (addHook)PIXI.BasePrepare inherited
-
Adds hooks for finding items.
Name Type Description addHookfunction Function call that takes two parameters:
item:*, queue:Arrayfunction must returntrueif it was able to add item to the queue.Returns:
Type Description PIXI.BasePrepare Instance of plugin for chaining. -
registerUploadHook (uploadHook)PIXI.BasePrepare inherited
-
Adds hooks for uploading items.
Name Type Description uploadHookfunction Function call that takes two parameters:
prepare:CanvasPrepare, item:*and function must returntrueif it was able to handle upload of item.Returns:
Type Description PIXI.BasePrepare Instance of plugin for chaining. -
upload (item, done) inherited
-
Upload all the textures and graphics to the GPU.
Name Type Description itemfunction | 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
prepare.add.donefunction optional Optional callback when all queued uploads have completed