-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.mjs
44 lines (41 loc) · 1.11 KB
/
main.mjs
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
/*
* 2019-2023 Tarpeeksi Hyvae Soft
*
* Software: Retro n-gon renderer
*
*/
if (!IS_PRODUCTION_BUILD) {
console.log(
"This is a %cnon-production build %cof the retro n-gon renderer that performs additional runtime data validation and error reporting. For best render throughput, switch to a production build.",
"font-weight: bold;",
"font-weight: normal;"
);
}
import {render} from "./api/render.mjs";
import {Color} from "./api/color.mjs";
import {Light} from "./api/light.mjs";
import {Mesh} from "./api/mesh.mjs";
import {Ngon} from "./api/ngon.mjs";
import {Texture} from "./api/texture.mjs";
import {Vector} from "./api/vector.mjs";
import {Vertex} from "./api/vertex.mjs";
import {Default} from "./api/default.mjs";
import {State} from "./api/state.mjs";
// The public API.
export const Rngon = {
version: {
major: 0,
minor: 3,
isProductionBuild: IS_PRODUCTION_BUILD,
},
default: Default,
render,
color: Color,
state: State,
light: Light,
mesh: Mesh,
ngon: Ngon,
texture: Texture,
vector: Vector,
vertex: Vertex,
};