MGL_glSetPalette

Sets the palette values for a device context when using OpenGL.

Declaration

void MGLAPI MGL_glSetPalette(
MGLDC *dc,
palette_t *pal,
int numColors,
int startIndex)

Prototype In

mgraph.h

Parameters

dc | Device context to set palette for
pal | Palette to set
numColors | Number of colors in the palette
startIndex | Starting index in the palette

Description

This functions sets the color palette for an MGL device context when running in OpenGL rendering modes. This function is identical to the regular MGL_setPalette function, however if you are running OpenGL you must use this function instead.

See Also

MGL_glRealizePalette, MGL_setPalette

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