From 9bf03a230a609e34f23e1393b676bfa3acef1268 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sat, 16 Nov 2019 19:21:56 +0100 Subject: [PATCH] getRootSceneNode --- include/ISceneManager.h | 3 +++ src/ISceneManager.cpp | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/include/ISceneManager.h b/include/ISceneManager.h index 37cc747..5700bb0 100644 --- a/include/ISceneManager.h +++ b/include/ISceneManager.h @@ -82,6 +82,9 @@ extern "C" { irr_scene_getMesh(irr_scene_ISceneManager* smgr, const char* filename); + irr_scene_ISceneNode* + irr_scene_getRootSceneNode(irr_scene_ISceneManager* smgr); + #ifdef __cplusplus } #endif diff --git a/src/ISceneManager.cpp b/src/ISceneManager.cpp index a3a24b4..b682499 100644 --- a/src/ISceneManager.cpp +++ b/src/ISceneManager.cpp @@ -142,4 +142,11 @@ extern "C" { 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(); + } } -- 2.39.5