Should I be using 'int' or 'irr::s32' ?

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
carlwryker
Posts: 22
Joined: Sun Jun 12, 2016 8:03 am

Should I be using 'int' or 'irr::s32' ?

Post by carlwryker »

Which int type should I generally be using with Irrlicht?
Code::Blocks
mingw
Windows 10 64-bit
CuteAlien
Admin
Posts: 9633
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Should I be using 'int' or 'irr::s32' ?

Post by CuteAlien »

I use Irrlicht types when communicating with Irrlicht classes. Otherwise I use other types.
For example if I save ID's from the SceneNode's somehwere else then I keep the irr::s32.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
carlwryker
Posts: 22
Joined: Sun Jun 12, 2016 8:03 am

Re: Should I be using 'int' or 'irr::s32' ?

Post by carlwryker »

Thank you!
Code::Blocks
mingw
Windows 10 64-bit
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Should I be using 'int' or 'irr::s32' ?

Post by Cube_ »

I use native types and static_cast<type> as needed.
"this is not the bottleneck you are looking for"
Post Reply