Skip to content

pixi-renderer.component overview


Table of contents


utils

PixiRendererComponent (class)

Signature

export declare class PixiRendererComponent {
  constructor(
    public readonly scene: PixiSceneComponent,
    public readonly canvas?: HTMLCanvasElement,
    options: Partial<RendererOptions & ApplicationOptions> = {}
  )
}

resizeRenderer (method)

Signature

resizeRenderer(newSize: Point2): void

addToWorld (method)

Signature

addToWorld(world: Gg2dWorld<PixiVisualTypeDocRepo2D, PhysicsTypeDocRepo2D, PixiSceneComponent>): void

removeFromWorld (method)

Signature

removeFromWorld(world: Gg2dWorld<PixiVisualTypeDocRepo2D, PhysicsTypeDocRepo2D, PixiSceneComponent>): void

render (method)

Signature

render(): void

dispose (method)

Signature

dispose(): void

application (property)

Signature

readonly application: any

world (property)

Signature

world: any