Page 1 of 1

Irrlicht and MFC

Posted: Sat Dec 20, 2003 5:00 pm
by Heroe
I want to programm a Level Editor. And I want to use MFC with the Irrlicht-Engine. My question: How can i view a Irrlicht Window in as a window as in other 3d level editors. (no split screen!) i hope you understood my question because of my bad english.......... :oops:

Posted: Sat Dec 20, 2003 9:35 pm
by keless
I dont think it is possible to merge IrrLicht with MFC the way you are talking-- since to start using IrrLicht, you have to let it create its own device window.

I dont know of a way to share your MFC's hDC with IrrLicht, so I doubt its possible. But I am somewhat new, and Sai or Boo or Niko may be able to help you better.

Posted: Sun Dec 21, 2003 2:35 am
by Boogle
keless is right, however you could modify the engine source code and set it up so you could use the MFC's hDC. Probably pass it as a parameter in the createDevice. It'd probably be quite a bit of work and research into the irrlicht code, however. Seems most of the Windows code is in CIrrDeviceWin32.cpp.

Posted: Sun Dec 21, 2003 9:51 am
by niko
Another possibility would be to design the interface of your editor to have independent windows. Like Delphi once had. This would be possible without changing the code of the engine.