-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.js
More file actions
70 lines (66 loc) · 1.62 KB
/
Copy pathindex.js
File metadata and controls
70 lines (66 loc) · 1.62 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
58
59
60
61
62
63
64
65
66
67
68
69
70
/** @module pex-renderer */
export {
/**
* Create a world object to store entities and systems
*
* @function
* @returns {import("./types.js").World}
*/
default as world,
} from "./world.js";
export {
/**
* Create an entity from an object of plain data components
*
* @function
* @param {object} [components={}]
* @returns {import("./types.js").Entity}
*/
default as entity,
} from "./entity.js";
export {
/**
* Create a render engine eg. a collection of systems for default rendering
*
* @function
* @returns {import("./types.js").RenderEngine}
*/ default as renderEngine,
} from "./render-engine.js";
/**
* All components as a function returning a component with default values.
*
* @type {module:components}
* @name components
* @static
*/
export * as components from "./components/index.js";
/**
* All systems as a function returning a system with a type property and an
* update function.
*
* @type {module:systems}
* @name systems
* @static
*/
export * as systems from "./systems/index.js";
export * as loaders from "./loaders/index.js";
export {
/**
* Create a render graph for rendering passes
*
* @function
* @param {import("pex-context/types/index.js")} ctx
* @returns {import("./types.js").RenderGraph}
*/
default as renderGraph,
} from "./render-graph.js";
export {
/**
* Create a resource cache for pex-context caching.
*
* @function
* @param {import("pex-context/types/index.js")} ctx
* @returns {import("./types.js").ResourceCache}
*/ default as resourceCache,
} from "./resource-cache.js";
export * as utils from "./utils.js";