Kodachi_Garou
26-10-2007 09:55:49
Hi all,
While carefully gleaning through the PixelFormat enum, I found a dangerous inconsistency which I couldn't tell whether it was from the Mogre wrapper or from Ogre itself. This is the relevant excerpt:
As you can see the synonyms are broken: BGR corresponds to R8G8B8 and RGB to B8G8R8.
Can anyone confirm this? Its dangerous especially since there's two of each so one can't tell which one is the correct one.
Best regards,
Gonçalo
While carefully gleaning through the PixelFormat enum, I found a dangerous inconsistency which I couldn't tell whether it was from the Mogre wrapper or from Ogre itself. This is the relevant excerpt:
PF_BYTE_BGR = 10,
PF_R8G8B8 = 10,
PF_B8G8R8 = 11,
PF_BYTE_RGB = 11,
As you can see the synonyms are broken: BGR corresponds to R8G8B8 and RGB to B8G8R8.
Can anyone confirm this? Its dangerous especially since there's two of each so one can't tell which one is the correct one.
Best regards,
Gonçalo