OpenLayer Offline Manual

OpenLayer | Rgba | Packed Packed Advanced function
int Packed() const;
Returns the color in a packed 32-bit integer. 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
MixWith | Mixes two colors together with the given factor
WithAlpha | Creates a new color with the same color components but a different alpha value
Advanced functions
Packed | Returns the color packed in an integer
Select | Selects the color as the active OpenGL color
Back to the main page of the manual Questions about Packed? Click here.