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

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

Convert the given OverlayColor into a RGB triplet. 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).

See also:


Definition at line 73 of file system.cpp.

Referenced by colorToARGB().

      ::colorToRGB<ColorMasks<565> >(color, r, g, b);

Generated by  Doxygen 1.6.0   Back to index