| Home
| Previous
| Next
| Up

MGL_unpackColorFast

Unpacks a packed MGL color value into RGB components.

Declaration

void MGL_unpackColorFast(
pixel_format_t *pf,
color_t color,
uchar R,
uchar G,
uchar B)

Prototype In

mgraph.h

Parameters

pf | Pixel format to use for unpacking
color | Color to unpack
R | Place to store extracted red component
G | Place to store extracted green component
B | Place to store extracted blue component

Description

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

See Also

MGL_unpackColorExt, MGL_unpackColor, MGL_packColor, MGL_getPixelFormat

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