As you all know, currently Irrlicht cannot be used inside an existing GTK window (usually Linux).
Well, I have the patch for it but I don't know where to post this. Patch tracker at SF or hybrid's site?
(click here for full size)
Embed Irrlicht in an existing GTK window
I have no problems with hosting your files It's a permanent link with good connection and no size limits. Adding the direct link into this thread should be enough to make it available. I don't know whether the SF project pages are of any use. There are bugs announced which have been fixed for years now.
OK, I sent you a mail with the patch.
As a reference for everyone interested, here's how it works:
The IrrlichtDevice must be created using createDeviceEx. The WindowId member of SIrrlichtCreationParameters, must be set to point to a NULL-terminated string containing the display + ":" + windowid.
That's it
Note that I have tested this only with OpenGL...
As a reference for everyone interested, here's how it works:
The IrrlichtDevice must be created using createDeviceEx. The WindowId member of SIrrlichtCreationParameters, must be set to point to a NULL-terminated string containing the display + ":" + windowid.
Code: Select all
SIrrlichtCreationParameters params;
Display* pDisplay = ...; // set this to the display
Window winID = ...; // set this to your window id
core::stringc winDesc = (long)pDisplay;
winDesc += ':';
winDesc += (int)winID;
params.WindowId = (long)winDesc.c_str();
params.DriverType = EDT_OPENGL;
irr::IrrlichtDevice* pDevice = createDeviceEx(params);
Note that I have tested this only with OpenGL...
*breathes a big sigh of relief*
you might very possibly have just saved me tons of work! i was dreading this! thank you so much!!
you might very possibly have just saved me tons of work! i was dreading this! thank you so much!!
New RF2 website at: http://realityfactory2.sourceforge.net/
any news on this item of intrest ? it seems there is an issue with wx window handle params too.
this might be of use though
http://gtkglext.sourceforge.net/download
this might be of use though
http://gtkglext.sourceforge.net/download