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
Name | Type |
---|---|
delta | number |
total | number |
Returns
void
Defined in
backgroundAlpha
• Optional
backgroundAlpha: number
Default background alpha (transparency) value (default: 1).
Defined in
backgroundColor
• Optional
backgroundColor: ColorRepresentation
Default background color (default: 'black').
Defined in
disableContextMenu
• Optional
disableContextMenu: boolean
Disable the context menu on right-click (default: true).
Defined in
enableCursor
• Optional
enableCursor: boolean
Enable cursor handling in the application (default: true).
Defined in
fullscreen
• Optional
fullscreen: boolean
Enable full-screen mode and automatic canvas resizing (default: true).
Defined in
multitouch
• Optional
multitouch: boolean
Enable multitouch interactions (default: false).
Defined in
rendererParameters
• Optional
rendererParameters: WebGLRendererParameters
Configuration parameters for the WebGLRenderer.
Defined in
showStats
• Optional
showStats: boolean
Display performance statistics (default: true).