It seems I was not as "Swift" as I might have been.
The only reason texturing was messing up on big endian systems was that you are using the GL_BGRA_EXT for generating textures.
This is very simply fixed by placing #ifdef IRR_LIL_ENDIAN/#else/#endif statements around the opengl texture creation functions, and replacing GL_BGRA_EXT with GL_RGBA if it IRR_BIG_ENDIAN
That fixes most things, and the BMP and MD2 loaders I sent Niko before now work just fine. I have also endianized the 3DS loader, I will send it as soon as I have cleaned up the code. The JPEG loader works as is (thanks to libjpeg), and I am at work on the BSP loader.
SwiftCoder
Endian Support Fixed
@SwiftCoder: could you send that fixed MD2 loader to me (macsdl at soniq de)? we have a macsdl port ready that needs endian fixed mesh loaders .
http://www.irrlichtnx.mmdevel.de/phpBB2 ... ?p=459#459
http://www.irrlichtnx.mmdevel.de/phpBB2 ... ?p=459#459
The BMP/PSD endian fixes are trivial (JPEG works out of the box). I wanted to post a complete patchset for MACSDL there. Without a completed device for at least one big endian system submitting is rather useless because nobody could test these. To submit a complete set we need to support MD2/BSP at least to get the tech demo running.
Please see the irrlichtnx thread for updates. I could send the fixes directly to you though.
Please see the irrlichtnx thread for updates. I could send the fixes directly to you though.