PIXI.ObjectRenderer
class ObjectRenderer implements PIXI.ISystem
Base for a common object renderer that can be used as a system renderer plugin.
Constructor
new PIXI.ObjectRenderer(renderer: PIXI.Renderer) → {}
Name | Type | Description |
---|---|---|
renderer | PIXI.Renderer |
The renderer this manager works for. |
Summary
Properties from ObjectRenderer
PIXI.Renderer |
The renderer this manager works for. |
Methods from ObjectRenderer
void |
Generic destruction method that frees all resources. This should be called by subclasses. |
void |
Stub method that should be used to empty the current batch by rendering objects now. |
void |
|
void |
|
void |
Stops the renderer. It should free up any state and become dormant. |
Protected Properties
protected renderer: PIXI.Renderer
The renderer this manager works for.
Public Methods
destroy() → {void}
Generic destruction method that frees all resources. This should be called by subclasses.
Type | Description |
---|---|
void |
flush() → {void}
Stub method that should be used to empty the current batch by rendering objects now.
Type | Description |
---|---|
void |
render(_object: PIXI.DisplayObject) → {void}
Keeps the object to render. It doesn't have to be rendered immediately.
Name | Type | Description |
---|---|---|
_object | PIXI.DisplayObject |
The object to render. |
Type | Description |
---|---|
void |
start() → {void}
Stub method that initializes any state required before
rendering starts. It is different from the prerender
signal, which occurs every frame, in that it is called
whenever an object requests this renderer specifically.
Type | Description |
---|---|
void |
stop() → {void}
Stops the renderer. It should free up any state and become dormant.
Type | Description |
---|---|
void |