Hiding the IrrlichtDevice

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
atsmith
Posts: 2
Joined: Thu Dec 17, 2015 10:07 am

Hiding the IrrlichtDevice

Post by atsmith »

Hello everyone!

I have a question about hiding the IrrlichtDevice's window on creation of the device and displaying the window at some point of my choosing (this is not about the console device, as I already know how to deal with that). I am wondering if the only way that I will be able to do this is to create a native window beforehand and send that in via the SIrrlichtCreationParameters, or if there is another way to do this without having to touch the OS' native API. Using:

Code: Select all

 
    irr::IrrlichtDevice* device = ...;
    device->minimizeWindow( );
 
does not get me the result that I am after. In SIrrlichtCreationParameters, there is no option to hide the device, and in the documentation for IrrlichtDevice there is no hide() or show() functions for the device.

Is this possible without modifying the Irrlicht API or touching the OS' native API?

Thanks!
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Hiding the IrrlichtDevice

Post by hendu »

No, there is no portable way to do so. I assume you don't want the window in the taskbar and alt-tab queue?
atsmith
Posts: 2
Joined: Thu Dec 17, 2015 10:07 am

Re: Hiding the IrrlichtDevice

Post by atsmith »

hendu wrote:No, there is no portable way to do so. I assume you don't want the window in the taskbar and alt-tab queue?
Correct. So I will have to do it only for those systems that I am supporting. Okay, can do! Thanks!
Post Reply