@woosh/meep-engine 2.119.30 → 2.119.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.119.30",
8
+ "version": "2.119.31",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -3,7 +3,7 @@ import Signal from "../../core/events/signal/Signal";
3
3
  import Vector2 from "../../core/geom/Vector2";
4
4
  import Vector3 from "../../core/geom/Vector3";
5
5
  import View from "../../view/View";
6
- import {MaterialManager} from "./material/manager/MaterialManager";
6
+ import {MaterialManager} from "./material/manager/MaterialManager.js";
7
7
  import {RenderLayerManager} from "./render/layers/RenderLayerManager";
8
8
 
9
9
  interface IGraphicsEngineSignals {
@@ -1,6 +1,64 @@
1
- import {Material} from "three";
2
- import {Reference} from "../../../reference/v2/Reference";
3
-
4
- export class MaterialManager{
5
- obtain(source:Material):Reference<Material>
6
- }
1
+ export class MaterialManager {
2
+ /**
3
+ * Stores links from uncompiled (source) materials to managed containers
4
+ * @type {HashMap<Material, ManagedMaterial>}
5
+ * @private
6
+ */
7
+ private __library;
8
+ /**
9
+ * Cache for unused materials, gives them a second chance to be used before being disposed completely
10
+ * @type {Cache<Material, ManagedMaterial>}
11
+ * @private
12
+ */
13
+ private __cache;
14
+ /**
15
+ * Stores links from compiled materials back to the container
16
+ * @type {HashMap<Material, ManagedMaterial>}
17
+ * @private
18
+ */
19
+ private __reverse_library;
20
+ /**
21
+ *
22
+ * @type {AbstractMaterialTransformer[]}
23
+ * @private
24
+ */
25
+ private __transform_chain;
26
+ /**
27
+ * handle material disposal
28
+ * @param {Material} m
29
+ * @param {ManagedMaterial} managed_material
30
+ * @private
31
+ */
32
+ private __dispose_material;
33
+ /**
34
+ *
35
+ * @param {ManagedMaterial} material
36
+ * @private
37
+ */
38
+ private __handle_last_reference_removed;
39
+ /**
40
+ *
41
+ * @param {AbstractMaterialTransformer} def
42
+ */
43
+ addCompileStep(def: AbstractMaterialTransformer): void;
44
+ /**
45
+ *
46
+ * @param {AbstractMaterialTransformer} def
47
+ * @returns {boolean}
48
+ */
49
+ removeCompileStep(def: AbstractMaterialTransformer): boolean;
50
+ /**
51
+ *
52
+ * @param {Material} m
53
+ * @returns {Material}
54
+ * @private
55
+ */
56
+ private __compile;
57
+ /**
58
+ *
59
+ * @param {Material} source
60
+ * @returns {Reference<Material>}
61
+ */
62
+ obtain(source: Material): Reference<Material>;
63
+ }
64
+ //# sourceMappingURL=MaterialManager.d.ts.map