new PIXI.prepare.WebGLPrepare(renderer)
| Name | Type | Description |
|---|---|---|
renderer |
PIXI.WebGLRenderer |
A reference to the current renderer |
Extends
Methods
-
inherited add(item){PIXI.CanvasPrepare}
-
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. -
inherited destroy()
-
Destroys the plugin, don't use after this.
-
inherited register(addHook, uploadHook){PIXI.BasePrepare}
-
Name Type Description addHookfunction optional Function call that takes two parameters:
item:*, queue:Arrayfunction must returntrueif it was able to add item to the queue.uploadHookfunction optional Function call that takes two parameters:
prepare:CanvasPrepare, item:*and function must returntrueif it was able to handle upload of item.- Deprecated
- since version 4.4.2
- See:
Returns:
Type Description PIXI.BasePrepare Instance of plugin for chaining. -
inherited registerFindHook(addHook){PIXI.BasePrepare}
-
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. -
inherited registerUploadHook(uploadHook){PIXI.BasePrepare}
-
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. -
inherited upload(item, done)
-
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