Collection of additional hooks for finding assets.
Callback to call after completed.
If prepare is ticking (running).
Collection of additional hooks for processing assets.
Static
uploadsThe default maximum uploads per frame.
Manually add an item to the uploading queue.
Object to add to the queue
Instance of plugin for chaining.
Adds hooks for uploading items.
Function call that takes two parameters: prepare:CanvasPrepare, item:*
and
function must return true
if it was able to handle upload of item.
Instance of plugin for chaining.
Upload all the textures and graphics to the GPU.
Optional
item: Container or display object to search for items to upload or the items to upload themselves,
or optionally ommitted, if items have been added using PIXI.BasePrepare#add prepare.add
.
The prepare plugin provides renderer-specific plugins for pre-rendering DisplayObjects. These plugins are useful for asynchronously preparing and uploading to the GPU assets, textures, graphics waiting to be displayed.
Do not instantiate this plugin directly. It is available from the
renderer.prepare
property.Example
Memberof
PIXI