From fbd9cb42b9a35c3c4416ae2fd3d65525e6fd50b9 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Thu, 3 Oct 2019 13:31:18 +0200 Subject: [PATCH] getSceneManager --- include/IrrlichtDevice.h | 1 + src/IrrlichtDevice.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/IrrlichtDevice.h b/include/IrrlichtDevice.h index 906fb0a..c5a2ed6 100644 --- a/include/IrrlichtDevice.h +++ b/include/IrrlichtDevice.h @@ -26,6 +26,7 @@ extern "C" { #endif + void* irr_IrrlichtDevice_getSceneManager(void* device); void* irr_IrrlichtDevice_getVideoDriver(void* device); #ifdef __cplusplus diff --git a/src/IrrlichtDevice.cpp b/src/IrrlichtDevice.cpp index b78b1ec..fc7665a 100644 --- a/src/IrrlichtDevice.cpp +++ b/src/IrrlichtDevice.cpp @@ -23,6 +23,11 @@ #include "IrrlichtDevice.h" extern "C" { + void* irr_IrrlichtDevice_getSceneManager(void* device) + { + return ((irr::IrrlichtDevice*)device)->getSceneManager(); + } + void* irr_IrrlichtDevice_getVideoDriver(void* device) { return ((irr::IrrlichtDevice*)device)->getVideoDriver(); -- 2.39.5