forked from BabylonJS/Babylon.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsceneLoaderFlags.ts
More file actions
57 lines (48 loc) · 1.83 KB
/
Copy pathsceneLoaderFlags.ts
File metadata and controls
57 lines (48 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { Constants } from "../Engines/constants";
/**
* Class used to represent data loading progression
*/
export class SceneLoaderFlags {
// Flags
private static _ForceFullSceneLoadingForIncremental = false;
private static _ShowLoadingScreen = true;
private static _CleanBoneMatrixWeights = false;
private static _loggingLevel = Constants.SCENELOADER_NO_LOGGING;
/**
* Gets or sets a boolean indicating if entire scene must be loaded even if scene contains incremental data
*/
public static get ForceFullSceneLoadingForIncremental() {
return SceneLoaderFlags._ForceFullSceneLoadingForIncremental;
}
public static set ForceFullSceneLoadingForIncremental(value: boolean) {
SceneLoaderFlags._ForceFullSceneLoadingForIncremental = value;
}
/**
* Gets or sets a boolean indicating if loading screen must be displayed while loading a scene
*/
public static get ShowLoadingScreen(): boolean {
return SceneLoaderFlags._ShowLoadingScreen;
}
public static set ShowLoadingScreen(value: boolean) {
SceneLoaderFlags._ShowLoadingScreen = value;
}
/**
* Defines the current logging level (while loading the scene)
* @ignorenaming
*/
public static get loggingLevel(): number {
return SceneLoaderFlags._loggingLevel;
}
public static set loggingLevel(value: number) {
SceneLoaderFlags._loggingLevel = value;
}
/**
* Gets or set a boolean indicating if matrix weights must be cleaned upon loading
*/
public static get CleanBoneMatrixWeights(): boolean {
return SceneLoaderFlags._CleanBoneMatrixWeights;
}
public static set CleanBoneMatrixWeights(value: boolean) {
SceneLoaderFlags._CleanBoneMatrixWeights = value;
}
}