feat: add rotation gizmo

This commit is contained in:
Nick Fisher committed 2025-01-07 08:25:48 +08:00
1 parent 0ad73d06e0
commit def85614d8
17 files changed
+4056 -7790

No files matched your search

@@ -124,6 +124,11 @@ extern "C"
typedef struct Aabb3 Aabb3;
enum TGizmoType {
TRANSLATION,
ROTATION
};
#ifdef __cplusplus
}
#endif
@@ -11,7 +11,7 @@ extern "C"
{
#endif
EMSCRIPTEN_KEEPALIVE TGizmo *SceneManager_createGizmo(TSceneManager *tSceneManager, TView *tView, TScene *tScene);
EMSCRIPTEN_KEEPALIVE TGizmo *SceneManager_createGizmo(TSceneManager *tSceneManager, TView *tView, TScene *tScene, TGizmoType tGizmoType);
EMSCRIPTEN_KEEPALIVE TSceneAsset *SceneManager_createGeometry(
TSceneManager *sceneManager,
float *vertices,
@@ -59,6 +59,7 @@ namespace thermion
TSceneManager *tSceneManager,
TView *tView,
TScene *tScene,
TGizmoType tGizmoType,
void (*onComplete)(TGizmo*)
);