Getting Irrlicht to render even when not in focus.

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
Justei
Posts: 47
Joined: Fri Aug 20, 2010 11:20 am

Getting Irrlicht to render even when not in focus.

Post by Justei »

Hey there!
I wanted to know if there's a way of getting Irrlicht to render, even when it's not in focus.
At least for me, I havent needed this before now, but I currently need the engine to keep rendering even when it's not in focus.
Any ideas? (Sorry if the solution is something simple, actually never tried this before and can't seem to find anything on google etc).
Image
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Getting Irrlicht to render even when not in focus.

Post by CuteAlien »

Do you have a line like that in your code?

Code: Select all

 
if (device->isWindowActive())
 
That's the check used in the example to only update when the window is active. So you can disable that (in case that was the problem).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Justei
Posts: 47
Joined: Fri Aug 20, 2010 11:20 am

Re: Getting Irrlicht to render even when not in focus.

Post by Justei »

Sigh... yeah, figures I forget that lol. Thanks :P you can remove this thread.
Image
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Getting Irrlicht to render even when not in focus.

Post by CuteAlien »

Let's keep it, then the next guy googling for it can find something :-) (and don't worry, you're not the first who asked that)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply