Creating a device without creating a window

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
Donner
Posts: 87
Joined: Fri May 18, 2007 11:27 am

Creating a device without creating a window

Post by Donner »

Hey,

in my program i'm using Qt as GUI and Irrlicht as rendering engine.

I have multiple windows within my GUI used for different cameras. To let the device render in the right window, I use the id of the window in beginScene.

When creating the device at the program start, i put IrrlichtParameters.WindowId = NULL;

because there is no "standard window" where Irrlicht should render the scene into.

My problem: Whenever i create the device, it opens a new window (but of course it never uses it, because before rendering the scene I set another window with begindevice).

How can I tell Irrlicht not to open a new, empty window? Is there such an option?

Thanks a lot,
D.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

You can
a) create the device and give it a handle to the window that should be used to render
b) hide the window of the created device.

I would vote for a)
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
Psan
Posts: 16
Joined: Sun Oct 04, 2009 7:07 pm

Post by Psan »

I'm not sure , but there is a null driver which may help.

Code: Select all

enum E_DRIVER_TYPE
{
//! Null driver, useful for applications to run the engine without visualisation.
/** The null device is able to load textures, but does not
	render and display any graphics. */

	EDT_NULL,
........

Post Reply