Should I be using 'int' or 'irr::s32' ?
-
- Posts: 22
- Joined: Sun Jun 12, 2016 8:03 am
Should I be using 'int' or 'irr::s32' ?
Which int type should I generally be using with Irrlicht?
Code::Blocks
mingw
Windows 10 64-bit
mingw
Windows 10 64-bit
Re: Should I be using 'int' or 'irr::s32' ?
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.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 22
- Joined: Sun Jun 12, 2016 8:03 am
-
- 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' ?
I use native types and static_cast<type> as needed.
"this is not the bottleneck you are looking for"