Skip to main content

Class: RenderController

renderer/controller.RenderController

Handles flush orders of Renderers

Constructors

constructor

โ€ข new RenderController()

Properties

renderers

โ€ข renderers: typeof Renderer[] = []

Defined in

src/renderer/controller.ts:8

Methods

addRenderer

โ–ธ addRenderer(renderer): void

Adds a renderer to the controller.

Parameters

NameTypeDescription
renderertypeof RendererThe renderer to add

Returns

void

Defined in

src/renderer/controller.ts:39


addRenderers

โ–ธ addRenderers(...renderers): void

Adds the given renderers to the controller.

Parameters

NameTypeDescription
...rendererstypeof Renderer[]The renderers to add

Returns

void

Defined in

src/renderer/controller.ts:48


flush

โ–ธ flush(): void

Flushes all Renderers.

Returns

void

Defined in

src/renderer/controller.ts:13


removeRenderer

โ–ธ removeRenderer(renderer): void

Removes a renderer from the controller.

Parameters

NameTypeDescription
rendererRendererThe renderer to remove

Returns

void

Defined in

src/renderer/controller.ts:57