@@ -3,28 +3,14 @@ open SceneGraphType;
3
3
type sceneRepo = {getSceneGameObject: unit => gameObject };
4
4
5
5
type gameObjectRepo = {
6
- // getMaxUID: unit => uid,
7
- // setMaxUID: uid => unit,
8
- // addTransform: (gameObject, transform) => unit,
9
6
getTransform: gameObject => option (transform ),
10
- // hasTransform: gameObject => bool,
11
- // addBSDFMaterial: (gameObject, bsdfMaterial) => unit,
12
- // getBSDFMaterial: gameObject => option(bsdfMaterial),
13
- // // hasBSDFMaterial: gameObject => bool,
14
- // // addGeometry: (gameObject, geometry) => unit,
15
- // getGeometry: gameObject => option(geometry),
16
- // // hasGeometry: gameObject => bool,
17
- // // addDirectionLight: (gameObject, directionLight) => unit,
18
- // getDirectionLight: gameObject => option(directionLight),
19
- // // hasDirectionLight: gameObject => bool,
20
- // // addBasicCameraView: (gameObject, basicCameraView) => unit,
21
- // getBasicCameraView: gameObject => option(basicCameraView),
22
- // // hasBasicCameraView: gameObject => bool,
23
- // // addPerspectiveCameraProjection:
24
- // // (gameObject, perspectiveCameraProjection) => unit,
25
- // getPerspectiveCameraProjection:
26
- // gameObject => option(perspectiveCameraProjection),
27
- // hasPerspectiveCameraProjection: gameObject => bool,
7
+ // getBSDFMaterial: gameObject => option(bsdfMaterial),
8
+ // getGeometry: gameObject => option(geometry),
9
+ // getDirectionLight: gameObject => option(directionLight),
10
+ // getBasicCameraView: gameObject => option(basicCameraView),
11
+ // getPerspectiveCameraProjection:
12
+ // gameObject => option(perspectiveCameraProjection),
13
+ // hasPerspectiveCameraProjection: gameObject => bool,
28
14
getAllGeometryGameObjects: gameObject => list (gameObject ),
29
15
// getAllGameObjectGeometries: gameObject => list(geometry),
30
16
// getAllGameObjectBSDFMaterials: gameObject => list(bsdfMaterial),
@@ -41,6 +27,23 @@ type transformRepo = {
41
27
getScale: transform => scale ,
42
28
};
43
29
30
+ // type bsdfMaterialRepo = {
31
+ // getDiffuseColor: bsdfMaterial => diffuse,
32
+ // getSpecular: bsdfMaterial => float,
33
+ // getSpecularColor: bsdfMaterial => specularColor,
34
+ // getRoughness: bsdfMaterial => float,
35
+ // getMetalness: bsdfMaterial => float,
36
+ // getTransmission: bsdfMaterial => float,
37
+ // getIOR: bsdfMaterial => float,
38
+ // getDiffuseMapImageId: bsdfMaterial => option(ImagePOType.id),
39
+ // getChannelRoughnessMetallicMapImageId:
40
+ // bsdfMaterial => option(ImagePOType.id),
41
+ // getEmissionMapImageId: bsdfMaterial => option(ImagePOType.id),
42
+ // getNormalMapImageId: bsdfMaterial => option(ImagePOType.id),
43
+ // getTransmissionMapImageId: bsdfMaterial => option(ImagePOType.id),
44
+ // getSpecularMapImageId: bsdfMaterial => option(ImagePOType.id),
45
+ // };
46
+
44
47
type sceneGraphRepo = {
45
48
sceneRepo,
46
49
transformRepo,
0 commit comments