PIXI.CanvasPrepare
class CanvasPrepare extends PIXI.BasePrepare
The prepare manager provides functionality to upload content to the GPU.
This cannot be done directly for Canvas like in WebGL, but the effect can be achieved by drawing textures to an offline canvas. This draw call will force the texture to be moved onto the GPU.
An instance of this class is automatically created by default, and can be found at renderer.plugins.prepare
Constructor
new PIXI.CanvasPrepare(renderer: PIXI.CanvasRenderer) → {}
Name | Type | Description |
---|---|---|
renderer | PIXI.CanvasRenderer |
A reference to the current renderer |
Summary
Methods from CanvasPrepare
void |
Destroys the plugin, don't use after this |
Properties inherited from BasePrepare
Array<Function> |
|
Array<Function> |
|
boolean |
|
Array<Function> |
|
Array<any> |
Collection of items to uploads at once. |
PIXI.AbstractRenderer |
Reference to the renderer. |
any |
|
Methods inherited from BasePrepare
this |
|
this |
|
this |
|
Promise<void> |
|
void |
|
void |
|
Public Properties
Public Methods
destroy() → {void}
Destroys the plugin, don't use after this
Type | Description |
---|---|
void |