Skip to main content

Interface: MainParameters

Core.MainParameters

Configuration parameters for initializing the Main class.

Properties

animate

Optional animate: (delta: number, total: number) => void

Type declaration

▸ (delta, total): void

Callback function executed for each frame.

Parameters
NameType
deltanumber
totalnumber
Returns

void

Defined in

src/core/Main.ts:32


backgroundAlpha

Optional backgroundAlpha: number

Default background alpha (transparency) value (default: 1).

Defined in

src/core/Main.ts:30


backgroundColor

Optional backgroundColor: ColorRepresentation

Default background color (default: 'black').

Defined in

src/core/Main.ts:28


disableContextMenu

Optional disableContextMenu: boolean

Disable the context menu on right-click (default: true).

Defined in

src/core/Main.ts:26


enableCursor

Optional enableCursor: boolean

Enable cursor handling in the application (default: true).

Defined in

src/core/Main.ts:36


fullscreen

Optional fullscreen: boolean

Enable full-screen mode and automatic canvas resizing (default: true).

Defined in

src/core/Main.ts:22


multitouch

Optional multitouch: boolean

Enable multitouch interactions (default: false).

Defined in

src/core/Main.ts:38


rendererParameters

Optional rendererParameters: WebGLRendererParameters

Configuration parameters for the WebGLRenderer.

Defined in

src/core/Main.ts:34


showStats

Optional showStats: boolean

Display performance statistics (default: true).

Defined in

src/core/Main.ts:24