Stage
class Stage extends Layer
The stage manages all the layers in its scene tree.
Summary
Properties from Stage
| Array<Layer> |
Found layers |
| boolean |
Flags that this is a stage! |
Methods from Stage
| void |
|
| void |
This should be called before rendering for resolving items in the scene tree to their layers. |
Properties inherited from Layer
| ArrayLike<number> |
The background color to clear the layer. |
| Group |
The group of DisplayObjects that are rendered within this layer |
| boolean |
Flags that this container is a layer! |
| LayerTextureCache |
The texture manager used when rendering into a layer render-texture. |
| boolean |
This will enable double buffering for this layer. |
| boolean |
Flags whether this layer should render into a render-texture. |
Properties inherited from Container
| T[] |
|
| number |
The height of the Container, setting this will actually modify the scale to achieve the value set. |
| boolean |
|
| boolean |
|
| boolean |
Should children be sorted by zIndex at the next updateTransform call. |
| number |
The width of the Container, setting this will actually modify the scale to achieve the value set. |
Properties inherited from DisplayObject
Methods inherited from Layer
| void |
This should be called when the layer is found while traversing the scene for updating object-layer association. |
| void |
This should be called when the full subtree of the layer has been traversed while updating the stage's scene. |
| void |
|
| void |
you can override this method for this particular layer, if you want |
| PIXI.RenderTexture |
|
| void |
|
| void |
|
| void |
Cleans up the renderer after this layer is rendered. |
| boolean |
Prepares the renderer for this layer. |
Methods inherited from Container
Methods inherited from DisplayObject
Inherited Events from Container
Inherited Events from DisplayObject
|
|
|
|
|
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
|
|
|
Capture phase equivalent of |
|
|
Fired when the mouse pointer is moved over a DisplayObject and its descendant's hit testing boundaries. |
|
|
Capture phase equivalent of |
|
|
Fired when the mouse pointer exits a DisplayObject and its descendants. |
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
Fired when the pointer is moved over a DisplayObject and its descendant's hit testing boundaries. |
|
|
Capture phase equivalent of |
|
|
Fired when the pointer leaves the hit testing boundaries of a DisplayObject and its descendants. |
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
| PIXI.FederatedWheelEvent |
Fired when a the user scrolls with the mouse cursor over a DisplayObject. |
| PIXI.FederatedWheelEvent |
Capture phase equivalent of |
Public Properties
Public Methods
clear() → {void}
clears all display lists that were used in last rendering session please clear it when you stop using this displayList, otherwise you may have problems with GC in some cases
| Type | Description |
|---|---|
| void |
updateStage() → {void}
This should be called before rendering for resolving items in the scene tree to their layers.
If your scene's root is a Stage, then the ILayerRenderer mixin will automatically call it.
| Type | Description |
|---|---|
| void |