Code: Select all
#include <irrlicht.h>
#include <windows.h>
#include <MMSystem.h>
#pragma comment(lib, "Irrlicht.lib")
#pragma comment(lib, "winmm.lib")
:
:
:
int main()
{
:
:
:
while(device->run())
if (device->isWindowActive())
{
:
:
:
DWORD myTime = timeGetTime();
while(timeGetTime()<(myTime+30));
smgr->drawAll();
:
:
:
}
device->drop();
return 0;
}
PS: thanks jontan6 for your code, have tried but not working maybe I set wrongly.
