Interface IRenderableObject

Interface for DisplayObject to interface with Renderer. The minimum APIs needed to implement a renderable object.

PIXI

interface IRenderableObject {
    parent: IRenderableContainer;
    transform: Transform;
    disableTempParent(parent: IRenderableContainer): void;
    enableTempParent(): IRenderableContainer;
    render(renderer: IRenderer<ICanvas>): void;
    updateTransform(): void;
}

Hierarchy (View Summary)

Properties

Object must have a parent container

transform: Transform

Object must have a transform

Methods

  • Render object directly

    Parameters

    Returns void

  • Update the transforms

    Returns void