[SDL] Pixel byte manipulation question.

matt hull mattmatteh at mac.com
Mon Oct 1 21:54:52 PDT 2007


the mask tell you what part of the uint32 is RGBA.  it is not the  
same on all machines, it is determined by the graphics hardwhere.  i  
test my app on 3 different machines and each have a different RGBA mask.

matt

On Oct 1, 2007, at 4:24 PM, Paul Duffy wrote:

> I've been investigating the SDL data structure and I'm thinking  
> some of
> my questions will be more quickly dealt with if I just ask here:
>
> Is the combination of all the used RGBA masks guaranteed to be aligned
> to the right of the Uint32 regardless of endianness (eg: 24 bit RGB/ 
> BGR
> is always 0x00FFFFFF, 16Bit is always 0X0000FFFF/0x00007FFF)?
>
> Is the order of the colorkey applied the same or is there a difference
> in the operation?
>
> Any clues would be much appreciated :)
>
>
> 		
> ___________________________________________________________
> The all-new Yahoo! Mail goes wherever you go - free your email  
> address from your Internet provider. http://uk.docs.yahoo.com/ 
> nowyoucan.html
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



More information about the SDL mailing list