X-Git-Url: https://git.jsancho.org/?p=c-irrlicht.git;a=blobdiff_plain;f=src%2FISceneManager.cpp;fp=src%2FISceneManager.cpp;h=e7cefb8ec742f9bac47028a3ed4a10dbdcb91055;hp=f4f2c87e6b05b757a0e8a024f01ec9b85eaa8b63;hb=962438a61115ccca58ef96a91504ff10bc61c36f;hpb=4f2ca76c7ddfffc0c32bb4875d4cf7ed31792205 diff --git a/src/ISceneManager.cpp b/src/ISceneManager.cpp index f4f2c87..e7cefb8 100644 --- a/src/ISceneManager.cpp +++ b/src/ISceneManager.cpp @@ -236,6 +236,17 @@ extern "C" { alsoAddIfMeshPointerZero); } + irr_scene_ISceneNodeAnimator* + irr_scene_createRotationAnimator(irr_scene_ISceneManager* smgr, + irr_core_vector3df* rotationSpeed) + { + const irr::core::vector3df& irrRotationSpeed = + irr::core::vector3df(rotationSpeed->x, rotationSpeed->y, rotationSpeed->z); + + return ((irr::scene::ISceneManager*)smgr) + ->createRotationAnimator(irrRotationSpeed); + } + void irr_scene_drawAll(irr_scene_ISceneManager* smgr) {