show Menu back after Demo running

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ijo coim
Posts: 57
Joined: Fri Mar 25, 2005 1:29 pm
Location: indonesia, jogja-jogja

show Menu back after Demo running

Post by ijo coim »

hi forum.

i have a problem using demo. what i want is how to show the menu back

after main program was run?

i'd try to use this code:

Code: Select all

void CDemo::keluar()
{
CMainMenu menu;
menu.run(fullscreen, music, shadows, additive, vsync, driverType);
}
i put this code in event receiver in CDemo.cpp. well...it work, but the window doesn't want to close.

i'd try to use
device->drop()

it won't work. if i use

device->closeDevice()

all program will close.

thanks in advance.

regards,

ijo coim
Post Reply