]> git.jsancho.org Git - c-irrlicht.git/commitdiff
getRootSceneNode
authorJavier Sancho <jsf@jsancho.org>
Sat, 16 Nov 2019 18:21:56 +0000 (19:21 +0100)
committerJavier Sancho <jsf@jsancho.org>
Sat, 16 Nov 2019 18:21:56 +0000 (19:21 +0100)
include/ISceneManager.h
src/ISceneManager.cpp

index 37cc7476714df0b8522504adb5555c010042be68..5700bb08bafccb2aead24519339710680060fc11 100644 (file)
@@ -82,6 +82,9 @@ extern "C" {
   irr_scene_getMesh(irr_scene_ISceneManager* smgr,
                     const char* filename);
 
   irr_scene_getMesh(irr_scene_ISceneManager* smgr,
                     const char* filename);
 
+  irr_scene_ISceneNode*
+  irr_scene_getRootSceneNode(irr_scene_ISceneManager* smgr);
+
 #ifdef __cplusplus
 }
 #endif
 #ifdef __cplusplus
 }
 #endif
index a3a24b44e611dc0da351f813fee1f1a0a0137841..b682499927e47706d5c7319e7b6fb1f3a0a210cd 100644 (file)
@@ -142,4 +142,11 @@ extern "C" {
     return (irr_scene_IAnimatedMesh*)
       ((irr::scene::ISceneManager*)smgr)->getMesh(filename);
   }
     return (irr_scene_IAnimatedMesh*)
       ((irr::scene::ISceneManager*)smgr)->getMesh(filename);
   }
+
+  irr_scene_ISceneNode*
+  irr_scene_getRootSceneNode(irr_scene_ISceneManager* smgr)
+  {
+    return (irr_scene_ISceneNode*)
+      ((irr::scene::ISceneManager*)smgr)->getRootSceneNode();
+  }
 }
 }