As usual the base for this example is our template application from Chapter 2,
sceneto your namespace, then add an instance of
ISceneManagerwith the line
ISceneManager* smgr = device->getSceneManager();, just after
IVideoDriver* driver = device->getVideoDriver();.
smgr->drawAll(); in our loop.
if (device->isWindowActive()), which results in the current code block we have in our loop and else calls
guito your namespace, an instance of
guienv, assign it with
device->getGUIEnvironment()and add call
drawAll()of this instance in your application loop. If you are not sure, do take a look at the examples ...