implement remaining asset methods

This commit is contained in:
Nick Fisher
2022-08-19 21:48:37 +08:00
parent a44422521f
commit 76f625d429
3 changed files with 46 additions and 28 deletions

View File

@@ -134,13 +134,17 @@ extern "C" {
((SceneAsset*)asset)->transformToUnitCube();
}
// void set_position(void* asset, float x, float y, float z) {
// ((SceneAsset*)asset)->setPosition(x, y, z);
// }
void set_position(void* asset, float x, float y, float z) {
((SceneAsset*)asset)->setPosition(x, y, z);
}
// void set_rotation(void* asset, float rads, float x, float y, float z) {
// ((SceneAsset*)asset)->setRotation(rads, x, y, z);
// }
void set_rotation(void* asset, float rads, float x, float y, float z) {
((SceneAsset*)asset)->setRotation(rads, x, y, z);
}
void stop_animation(void* asset, int index) {
((SceneAsset*)asset)->stopAnimation(index);
}
}