portable engine question

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
stevend
Posts: 114
Joined: Sat Mar 01, 2008 7:18 pm

portable engine question

Post by stevend »

ok so i am writing an engine which will compile on windows and linux.

it seems the input dimension2d<> needs to be a u32 or linux and a s32 on windows.

i was just wondering what the difference between u32 and s32.
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

u32 is unsigned int, s32 is signed.
but i think its not about windows or linux... some procedures uses u32, some are s32...
Image
Image
stevend
Posts: 114
Joined: Sat Mar 01, 2008 7:18 pm

Post by stevend »

weird cause i gotta do this to get it to compile on both

Code: Select all

		#ifdef _MSC_VER
			device =
			createDevice( video::EDT_OPENGL, core::dimension2d<s32>(800, 600), 32,
				false, false, false, 0);
		#else
			device =
			createDevice( video::EDT_OPENGL, core::dimension2d<u32>(800, 600), 32,
				false, false, false, 0);
		#endif
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The s32 version is Irrlicht 1.5, the u32 version is the SVN/trunk version, i.e. upcoming 1.6. No matter of systems or platforms.
stevend
Posts: 114
Joined: Sat Mar 01, 2008 7:18 pm

Post by stevend »

oh thanks hybrid.

guess i gotta go back to 1.5 on linux
Post Reply