@emile/engine / rendering/renderer / RendererOptions
Interface: RendererOptions
Defined in: src/rendering/renderer.ts:13
Properties
autoInit?
optionalautoInit:boolean
Defined in: src/rendering/renderer.ts:19
Wether or not to automatically initialize the renderer.
Default
trueautoSize?
optionalautoSize:boolean
Defined in: src/rendering/renderer.ts:53
Wether or not to auto size the renderer to the parent element.
Default
truebackgroundColor?
optionalbackgroundColor:ColorSource
Defined in: src/rendering/renderer.ts:60
The background color of the renderer.
Default
"black"enablePixiDevTools?
optionalenablePixiDevTools:boolean
Defined in: src/rendering/renderer.ts:76
Wether or not to enable the pixi dev tools.
Default
falseenablePixiInteraction?
optionalenablePixiInteraction:boolean
Defined in: src/rendering/renderer.ts:85
Wether or not to enable pixi interactivity on the stage.
Uses app.stage.eventMode = "static" to enable interaction on the stage.
Default
trueheight?
optionalheight:number
Defined in: src/rendering/renderer.ts:46
The height of the renderer.
If set to -1, the height will be the same as the parent element.
Default
-1parentElement?
optionalparentElement:null|HTMLElement
Defined in: src/rendering/renderer.ts:28
The parent element to attach the renderer to.
If not set, you must manually add the renderer's canvas to the DOM. Using the attach method.
Default
nullscale?
optionalscale:number
Defined in: src/rendering/renderer.ts:69
The renderer's root scale.
e.g. 50 means 1 unit in the game world is 50 pixels on the screen.
Default
50width?
optionalwidth:number
Defined in: src/rendering/renderer.ts:37
The width of the renderer.
If set to -1, the width will be the same as the parent element.
Default
-1