I was working on trying to get Irrlicht to show inside a wxWidgets widget on Linux. So far all methods proposed only work on windows. I tweaked the irrlicht linux driver so i could pass the x11 window & display, and commented out the x11 window creation parts. This worked to some degree. I was able to make the irrlicht window attach to my wxWidgets widget, but the rendering seemed to appear behind my widget. (Maybe wxWidgets was drawing over the irrlicht rendering? i tried disabling that by overriding OnPaint but that didn't do much).
All in all, it seemed a very hackerish way of doing things. Then I remembered wxWidgets has that opengl widget. This had me wondering if it would be possible to use the wxWidgets opengl widget, and somehow make Irrlicht render in it. It's possible to set the glx rendering context to the wxWidgets gl window, so is it possible to emit the rendering context stuff from the driver + all the window creation stuff, so all OpenGL commands are sent to the wx window? Or maybe even go further and make an irrlicht driver derived from wxWindow, with event handlers and everything?
I'll keep experimenting with this, but I would greatly appreciate help/ideas/comments on my stupidity/etc...
Irrlicht wxWidgets driver?
Good news!
Just don't forget to keep the Irrlicht code style because even so I don't think it will be accepted into the core library - MAYBE - us users could use it a lot.
Also I think it won't be accepted because Irrlicht doesn't use external libraries so if you can somehow make it like #define compile with WxWidget and it will work it might actually get in
Anyway I'd like to see it finished and working as bugless as it can be
Just don't forget to keep the Irrlicht code style because even so I don't think it will be accepted into the core library - MAYBE - us users could use it a lot.
Also I think it won't be accepted because Irrlicht doesn't use external libraries so if you can somehow make it like #define compile with WxWidget and it will work it might actually get in
Anyway I'd like to see it finished and working as bugless as it can be
-
- Posts: 105
- Joined: Mon Jul 27, 2009 4:06 pm
- Location: Cambridge, MA
still no luck getting this to work with wx... maybe its cursed.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%