NAME

glColorTableParameteriv, glColorTableParameterfv - set color lookup table parameters

C SPECIFICATION

void ggllCCoolloorrTTaabblleePPaarraammeetteerriivv( GLenum _t_a_r_g_e_t,
                              GLenum _p_n_a_m_e,
                              const GLint _*_p_a_r_a_m_s )
void ggllCCoolloorrTTaabblleePPaarraammeetteerrffvv( GLenum _t_a_r_g_e_t,
                              GLenum _p_n_a_m_e,
                              const GLfloat _*_p_a_r_a_m_s )

delim $$

PARAMETERS

_t_a_r_g_e_t
The target color table. Must be GGLL__CCOOLLOORR__TTAABBLLEE, GGLL__PPOOSSTT__CCOONNVVOOLLUUTTIIOONN__CCOOLLOORR__TTAABBLLEE, or GGLL__PPOOSSTT__CCOOLLOORR__MMAATTRRIIXX__CCOOLLOORR__TTAABBLLEE.
_p_n_a_m_e
The symbolic name of a texture color lookup table parameter. Must be one of GGLL__CCOOLLOORR__TTAABBLLEE__SSCCAALLEE or GGLL__CCOOLLOORR__TTAABBLLEE__BBIIAASS.
_p_a_r_a_m_s
A pointer to an array where the values of the parameters are stored.

DESCRIPTION

ggllCCoolloorrTTaabblleePPaarraammeetteerr is used to specify the scale factors and bias terms applied to color components when they are loaded into a color table. _t_a_r_g_e_t indicates which color table the scale and bias terms apply to; it must be set to GGLL__CCOOLLOORR__TTAABBLLEE, GGLL__PPOOSSTT__CCOONNVVOOLLUUTTIIOONN__CCOOLLOORR__TTAABBLLEE, or GGLL__PPOOSSTT__CCOOLLOORR__MMAATTRRIIXX__CCOOLLOORR__TTAABBLLEE.

_p_n_a_m_e must be GGLL__CCOOLLOORR__TTAABBLLEE__SSCCAALLEE to set the scale factors. In this case, _p_a_r_a_m_s points to an array of four values, which are the scale factors for red, green, blue, and alpha, in that order.

_p_n_a_m_e must be GGLL__CCOOLLOORR__TTAABBLLEE__BBIIAASS to set the bias terms. In this case, _p_a_r_a_m_s points to an array of four values, which are the bias terms for red, green, blue, and alpha, in that order.

The color tables themselves are specified by calling ggllCCoolloorrTTaabbllee.

NOTES

ggllCCoolloorrTTaabblleePPaarraammeetteerr is available only if GGLL__AARRBB__iimmaaggiinngg is returned from calling ggllGGeettSSttrriinngg with an argument of GGLL__EEXXTTEENNSSIIOONNSS.

ERRORS

GGLL__IINNVVAALLIIDD__EENNUUMM is generated if _t_a_r_g_e_t or _p_n_a_m_e is not an acceptable value.

GGLL__IINNVVAALLIIDD__OOPPEERRAATTIIOONN is generated if ggllCCoolloorrTTaabblleePPaarraammeetteerr is executed between the execution of ggllBBeeggiinn and the corresponding execution of ggllEEnndd.

ASSOCIATED GETS

ggllGGeettCCoolloorrTTaabblleePPaarraammeetteerr

SEE ALSO

ggllCCoolloorrTTaabbllee((33GG)), ggllPPiixxeellTTrraannssffeerr((33GG))