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) → {}
Parameters:
Name Type Description
renderer PIXI.Renderer

The renderer this manager works for.

Summary


Properties from ObjectRenderer

PIXI.Renderer
protected renderer

The renderer this manager works for.

Methods from ObjectRenderer

void
destroy()

Generic destruction method that frees all resources. This should be called by subclasses.

void
flush()

Stub method that should be used to empty the current batch by rendering objects now.

void
render(_object: PIXI.DisplayObject)
void
start()
void
stop()

Stops the renderer. It should free up any state and become dormant.

Protected Properties


renderer ObjectRenderer.ts:11
protected renderer: PIXI.Renderer

The renderer this manager works for.

Public Methods


destroy ObjectRenderer.ts:28
destroy() → {void}

Generic destruction method that frees all resources. This should be called by subclasses.

Returns:
Type Description
void
flush ObjectRenderer.ts:22
flush() → {void}

Stub method that should be used to empty the current batch by rendering objects now.

Returns:
Type Description
void
render ObjectRenderer.ts:51
render(_object: PIXI.DisplayObject) → {void}

Keeps the object to render. It doesn't have to be rendered immediately.

Parameters:
Name Type Description
_object PIXI.DisplayObject

The object to render.

Returns:
Type Description
void
start ObjectRenderer.ts:34
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.

Returns:
Type Description
void
stop ObjectRenderer.ts:45
stop() → {void}

Stops the renderer. It should free up any state and become dormant.

Returns:
Type Description
void

Powered by webdoc!