Changes needed to compile in Visual Studio.NET 2003

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Miwa
Posts: 28
Joined: Wed Feb 18, 2004 10:48 pm

Changes needed to compile in Visual Studio.NET 2003

Post by Miwa »

I should've posted these sooner, but having to do them again for .5 reminded me of the changes...

Some simple casts needed to make the compiler happy.

2 changes needed to fast_atof.h (add the f to the 10.0)

line 68:
f *= (f32)pow(10.0f, exp);

line 113:
f *= (f32)pow(10.0f, exp);

And one change to CSceneNodeAnimatorFlyStraight.cpp to get rid of a warning (conversion of int to float possibly loses precision)

line 54:
pos += Vector * (f32)fmod((f32)t, (f32)TimeForWay) * TimeFactor;

(since the implicit conversion is to float, I just put the cast in to make the warning go away)


Next I'll post my changes to CIrrDeviceWin32.cpp to allow me to use irrlicht as a rendering engine for an existing Windows (in this case MFC) app. I added a createDevice call that takes a HWND, and uses that for the surface. I also added stuff to so that I could manage my own wndproc, and call into irrlicht for the event stuff (which means I added functions I could call for the WM_* mouse messages and the WM_KEY* messages)

Additionally, as pointed out in a previous post by someone else, you need to have the linker ignore libci.lib in the linker properties, if you get the error that it couldn't find that file.
Online game
Adult online game
Barbie game online
Online car game
Online card game
Child online game
Cool online game
Dragonball z online game
Dress up game online
Free online game
Free online adult game
Free online car game
Free online game com
Free online flash game
Free fun online game
Msn free online game
Play free online game rpg
Free online pool game
Free online puzzle game
Free online rpg game
Free online game site
Fun online game
Fashion game for girl online
Kid online game
Online math game
Pogo online game
Online pool game
Online psp game
Online rpg game
Online sex game
Sonic game online
Online video game
Online war game
Yahoo game online
Post Reply