Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

void OSystem::colorToARGB ( OverlayColor  color,
uint8 &  a,
uint8 &  r,
uint8 &  g,
uint8 &  b 
) [virtual]

Convert the given OverlayColor into an ARGB quadruplet. An OverlayColor can be 8bit, 16bit or 32bit, depending on the target system. The default implementation takes a 16 bit color value and assumes it to be in 565 format (that is, 5 bits red, 6 bits green, 5 bits blue).

Note:
The alpha component, ranges from 0 (transparent) to 255 (opaque).
See also:
ARGBToColor

colorToRGB

Definition at line 81 of file system.cpp.

References colorToRGB().

                                                                                    {
      colorToRGB(color, r, g, b);
      a = 255;
}


Generated by  Doxygen 1.6.0   Back to index