Video loaded twice in demo
Posted: Tue Jan 05, 2010 3:16 pm
I don't understand why getvideodriver() is called twice in the demo example ? Namely, once in cdemo::run
and then in cdemo::loadscenedata
What is the point of doing this ? Thanks.
Code: Select all
void CDemo::run()
{
[...]
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
gui::IGUIEnvironment* guienv = device->getGUIEnvironment();
[...]
}
Code: Select all
void CDemo::loadSceneData()
{
// load quake level
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* sm = device->getSceneManager();
[...]
}