feat: add rotation gizmo
This commit is contained in:
@@ -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*)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user