MGL_setGammaRamp

Sets the hardware gamma correction ramp.

Declaration

ibool MGLAPI MGL_setGammaRamp(
    MGLDC *dc,
    palette_ext_t *gamma,
    int num,
    int index,
    ibool waitVRT)

Prototype In

mgraph.h

Parameters

dc

Device context to set gamma ramp values for

gamma

Pointer to array of gamma ramp values to set

num

Number of gamma entries to set

index

Starting index of first gamma entry to set

waitVRT

True if routine should sync to vertical retrace, false if not.

 

Description

This function sets part or all of the hardware gamma correction ramp for a device context. You can specify only a subset of the gamma ramp entried to be modified with the startIndex and numColors arguments. The changes to the gamma ramp take place immediately.

Note:    This function is only valid for RGB display modes, and will do nothing in color index modes.

See Also

MGL_getGammaRamp

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