MGL_packColorFast

Pack an RGB tuple into an MGL color.

Declaration

color_t MGL_packColorFast(
pixel_format_t *pf,
uchar R,
uchar G,
uchar B)

Prototype In

mgraph.h

Parameters

pf | Pixel format to get packing information from
R | Red color component to pack (0 - 255)
G | Green color component to pack (0 - 255)
B | Blue color component to pack (0 - 255)

Return Value

MGL packed color value appropriate for the specified pixel format information.

Description

This function is the same as MGL_packColor, however it is implemented as a macro and hence is more efficient.

See Also

MGL_packColorFastExt, MGL_packColor, MGL_unpackColor

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com