typdef used by irrlicht
Posted: Wed Apr 16, 2008 1:14 pm
Hello,
I've taken a look at the source code and more specificly at the types beeing defined by irrlicht.
irr::u8 would be the same as unsigned char.
So I tried to make my custom classes return const unsigned char * pointers so that the value could be passed to irrlicht functions, since both should be equal by definition.
Yet when I try this, my compiler complains with :
invalid conversion from 'const unsigned char*' to 'const irr::c8*'.
What can't this be done ? they're the same type are they not ?
I've taken a look at the source code and more specificly at the types beeing defined by irrlicht.
irr::u8 would be the same as unsigned char.
So I tried to make my custom classes return const unsigned char * pointers so that the value could be passed to irrlicht functions, since both should be equal by definition.
Yet when I try this, my compiler complains with :
invalid conversion from 'const unsigned char*' to 'const irr::c8*'.
What can't this be done ? they're the same type are they not ?