Byte ordering

In 32 bpp modes under SDL, the channel ordering is normally: ARGB? Right?

My other question: how does the byte ordering differ from Intel to sparc to
alpha to ppc etc…

Thanks,

Paul Lowe
spazz at ulink.net

In 32 bpp modes under SDL, the channel ordering is normally: ARGB? Right?

Often, but don’t rely on it.

My other question: how does the byte ordering differ from Intel to sparc to
alpha to ppc etc…

Intel = little endian
Alpha = little endian
Sparc = big endian
PPC = big endian

The latest CVS snapshot has byte-swapping macros and an SDL_BYTEORDER
define in SDL_endian.h

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/