I’ve posted about this a couple times now.
It seems to me based on the previous messages
that I should maybe try other methods for accessing
the seperate color values of a pixel.
In the SDL docs it says that R, B, G, and Ashift are
values for “binary left shifts”. How/Can I use these
values to get the different color values of a given pixel?
Assume thePixel is a Uint32 value that represents
the given pixel. How do I use the -shift values of
SDL_format for the surface to get the color values?
Or if I don’t use the -shifts, how DO I get the color values.
It appears from pervious messages that SDL_GetRGBA
doesn’t work for this.
Is there a definite way to get each individual color value
for R, G, and B of a pixel of a surface loaded by SDL_image
that is independent of endianness, the image format on
Thanks so much for all your help,