I'm trying to get Irrlicht to work in an SDI window in Visual C++ .NET. I've gotten it to work in a Dialog box, but for some reason it will not display anything in an SDI window.
I changed the Irrlicht code to accept an HWND paramter in the createDevice function, and if its not NULL, Irrlicht skips creating a window and simply uses the provided HWND parameter for drawing, ect....
So assuming the HWND and createDevice works perfectly fine, has anybody gotten Irrlicht working in an SDI window?? I have source files as references in case anybody would like to look at them
http://cs.selu.edu/~soconnell/irrlicht
sdi.cpp and sdi.h are the files for creating the application
mainfrm.cpp and mainfrm.h are where all the initialization is being done.
This is also where I am initializing Irrlicht and inside of a Render function is where I draw everything to the screen.
To keep the app drawing and rendering, I overloaded the OnIdle function in sdi.h and had it call Mainfrm's Render function.
Anyway, anybody have any ideas??
SDI and Irrlicht
Oh and one more thing, when I run the program, the main window stays white even though I'm clearing the screen with black. Also, I notice that the top toolbar doesn't get redrawn correctly in the top left corner when the app starts, like there are distorted colors of gray and white in it. But if I resize the window and move it around they go away.
Although if I start the app without Irrlicht being initialized, this doesn't happen.
Although if I start the app without Irrlicht being initialized, this doesn't happen.
Oh, and here's the code for getting Irrlicht to work in a Dialog box, just in case anybody was wondering.
http://cs.selu.edu/~soconnell/irrlicht/dialogbox
http://cs.selu.edu/~soconnell/irrlicht/dialogbox