I have two problems with Irrlicht in MFC(SDI)

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
wooden
Posts: 1
Joined: Sun Mar 25, 2007 11:36 am

I have two problems with Irrlicht in MFC(SDI)

Post by wooden »

Hi,all,I met two problems when develop an application with irrlicht in MFC.
first,how to scale the display in CMyAppView. I used createDeviceEx() create device and bind it with the CMyAppView,the initialization was in OnInitUpdate(), when I MAXIMIZE the windows, the image didn't scale,what should I do.

second,when I move the mouse, the mouse didn't response, but my requirement is "when the mouse move into View area,it works,when moving out of the area,it didn't affect the 3d object",what should I do.
needforhint
Posts: 322
Joined: Tue Aug 30, 2005 10:34 am
Location: slovakia

Post by needforhint »

u should override OnSize function of yout View class, don't have to recreate device of course, just update Projection of the device with new screen. to your second problem, pay attention to GetClientScreen or ScreenToClient function in MFC documentation.
what is this thing...
Post Reply