Expose context lost simulator
This commit is contained in:
parent
32aebe9036
commit
69ad74ed73
8 changed files with 36 additions and 11 deletions
|
|
@ -11,4 +11,5 @@ export const defaultStartupSettings: StartupSettings = {
|
|||
backgroundColor: vec4.fromValues(1, 1, 1, 1),
|
||||
lightPenetrationRatio: 0.75,
|
||||
enableStopwatch: false,
|
||||
enableContextLostSimulator: false,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -41,6 +41,13 @@ export interface StartupSettings {
|
|||
*/
|
||||
paletteSize: number;
|
||||
|
||||
/**
|
||||
* Many context lost event will be simulated when enabled.
|
||||
*
|
||||
* Useful for testing.
|
||||
*/
|
||||
enableContextLostSimulator: boolean;
|
||||
|
||||
/**
|
||||
* The default background color of the scene, can have transparency on every platform.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue