Packed Advanced function The returned color value is in the same format as the colors in Allegro are. The format is usually: AA|RR|GG|BB where a letter means a byte. The format depends on the current screen mode and several other factors, though. It's best to not to rely on that the components are always positioned the same way inside the integer. Use Allegro's functions to extract the color components if you need to. Examples // Convert the Rgba structure to Allegro's color value //
Rgba color( ... ); int colorPacked = color.Packed(); Other functions of the class Rgba
Questions about Packed? Click here. |