---
name: "glColorTableParameter"
section: "3x"
platform: "linux"
package: "xlibmesa-gl-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/glColorTableParameter"
---

# glColorTableParameter(3x)

set color lookup table parameters

## NAME

**glColorTableParameteriv, glColorTableParameterfv** - set color lookup table parameters

## C SPECIFICATION

void **glColorTableParameteriv**( GLenum *target*,

```
	GLenum pname,
	const GLint *params )
```

void **glColorTableParameterfv**( GLenum *target*,

```
	GLenum pname,
	const GLfloat *params )
```

delim $$

## PARAMETERS

- *target*

  The target color table. Must be **GL\_COLOR\_TABLE**, **GL\_POST\_CONVOLUTION\_COLOR\_TABLE**, or **GL\_POST\_COLOR\_MATRIX\_COLOR\_TABLE**.

- *pname*

  The symbolic name of a texture color lookup table parameter. Must be one of **GL\_COLOR\_TABLE\_SCALE** or **GL\_COLOR\_TABLE\_BIAS**.

- *params*

  A pointer to an array where the values of the parameters are stored.

## DESCRIPTION

**glColorTableParameter** is used to specify the scale factors and bias terms applied to color components when they are loaded into a color table. *target* indicates which color table the scale and bias terms apply to; it must be set to  **GL\_COLOR\_TABLE**, **GL\_POST\_CONVOLUTION\_COLOR\_TABLE**, or **GL\_POST\_COLOR\_MATRIX\_COLOR\_TABLE**.

*pname* must be **GL\_COLOR\_TABLE\_SCALE** to set the scale factors. In this case, *params* points to an array of four values, which are the scale factors for red, green, blue, and alpha, in that order.

*pname* must be **GL\_COLOR\_TABLE\_BIAS** to set the bias terms. In this case, *params* 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 **glColorTable**.

## NOTES

**glColorTableParameter** is available only if **GL\_ARB\_imaging** is returned from calling **glGetString** with an argument of **GL\_EXTENSIONS**.

## ERRORS

**GL\_INVALID\_ENUM** is generated if *target* or *pname* is not an acceptable value.

**GL\_INVALID\_OPERATION** is generated if **glColorTableParameter** is executed between the execution of **glBegin** and the corresponding execution of **glEnd**.

## ASSOCIATED GETS

**glGetColorTableParameter**

## SEE ALSO

**glColorTable(3G)**, **glPixelTransfer(3G)**
