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

OverlayColor OSystem::ARGBToColor ( uint8  a,
uint8  r,
uint8  g,
uint8  b 
) [virtual]

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

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


Definition at line 77 of file system.cpp.

References RGBToColor().

      return RGBToColor(r, g, b);

Generated by  Doxygen 1.6.0   Back to index