@emile/engine / rendering/renderer / RendererOptions
Interface: RendererOptions
Defined in: src/rendering/renderer.ts:12
Properties
autoInit?
optional
autoInit:boolean
Defined in: src/rendering/renderer.ts:18
Wether or not to automatically initialize the renderer.
Default
true
autoSize?
optional
autoSize:boolean
Defined in: src/rendering/renderer.ts:52
Wether or not to auto size the renderer to the parent element.
Default
true
backgroundColor?
optional
backgroundColor:ColorSource
Defined in: src/rendering/renderer.ts:59
The background color of the renderer.
Default
"black"
enablePixiDevTools?
optional
enablePixiDevTools:boolean
Defined in: src/rendering/renderer.ts:84
Wether or not to enable the pixi dev tools.
Default
false
flipYAxis?
optional
flipYAxis:boolean
Defined in: src/rendering/renderer.ts:77
Wether or not to flip the y axis.
True will make the y axis increase upwards (sane), false will make the y axis decrease upwards (insane).
Default
true
height?
optional
height:number
Defined in: src/rendering/renderer.ts:45
The height of the renderer.
If set to -1, the height will be the same as the parent element.
Default
-1
parentElement?
optional
parentElement:null
|HTMLElement
Defined in: src/rendering/renderer.ts:27
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
null
scale?
optional
scale:number
Defined in: src/rendering/renderer.ts:68
The renderer's root scale.
e.g. 50 means 1 unit in the game world is 50 pixels on the screen.
Default
50
width?
optional
width:number
Defined in: src/rendering/renderer.ts:36
The width of the renderer.
If set to -1, the width will be the same as the parent element.
Default
-1