forlano Messages: 1185 Registered: March 2006 Location: Italy
Senior Contributor
mrjt wrote on Tue, 26 February 2008 15:29
Unfortunately it's not quite that easy, Upp Image formats are not standard RGBA. Depending on the platform they could be BGRA (Win32) or ARGB (see Core/Color.h). Unfortunately there is no GL unpacking format that copes with this directly, so it requires an Image copy with some byte swapping.
...
Thank you James,
I tried the above code that simplified the code of the tutorial. But unfortunatly it doesn't work
I got only a beautiful white rotating cube with no track of texture. I tried several things without success. I do not know if the problem reside in the swapping procedure or somewhere else. I attach the code in case somebody has time to check it.