Code: Select all
scene::ISceneManager *smgr;
Code: Select all
device = createDevice ( video::EDT_OPENGL, core::dimension2d<s32>( 800, 600 ), 16, false, false, true, this );
printf ( "Device created [SUCCESS]\n" );
driver = device->getVideoDriver();
smgr = device->getSceneManager();
Code: Select all
while ( device->run() )
{
driver->beginScene( true, true, video::SColor ( 0, 100, 100, 100) );
smgr->drawAll();
driver->endScene();
}
device->drop();
I use WinXP Pro SP1, Irrlicht 0.7 and Dev-C++ 4.9.8.0.