MGL_getHalfTonePalette

Returns a copy of the MGL halftone palette.

Declaration

void MGLAPI MGL_getHalfTonePalette(
palette_t *pal)

Prototype In

mgraph.h

Parameters

pal | Place to store the halftone palette values

Description

This function copies the MGL halftone palette into the specified palette structure. The halftone palette always contains 256 colors, and hence the palette array must contain 256 palette entries. This palette is a special palette used by MGL when running in RGB dithered rasterizing mode for 8 bit video modes. If you intend to enable RGB dithering with the MGL_setColorMapMode function, you must get a copy of the halftone palette and program the hardware palette for your display device or windowed device to be the same as this halftone palette.

Note that the MGL halftone palette is compatible with the standard Windows halftone palette, so you can perform 8 bit dithering operations in a window without needing to go into SYSPAL_STATIC mode.

See Also

MGL_setPalette, MGL_realizePalette, MGL_setColorMapMode

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