[SDL] Re: could somebody just run this? (Michael Benfield)

Thomas Omilian paccy at gmx.de
Mon Sep 5 13:55:27 PDT 2005


>  Uint32 mask1 = 0xff000000; Uint32 mask2 = 0x00ff0000;
>  Uint32 mask3 = 0x0000ff00; Uint32 mask4 = 0x000000ff;

#if SDL_BYTEORDER == SDL_BIG_ENDIAN
    rmask = 0xff000000;
    gmask = 0x00ff0000;
    bmask = 0x0000ff00;
    amask = 0x000000ff;
#else
    rmask = 0x000000ff;
    gmask = 0x0000ff00;
    bmask = 0x00ff0000;
    amask = 0xff000000;
#endif

Regards,
  Thomas Omilian







More information about the SDL mailing list