---
name: "glIndex"
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/glIndex"
---

# glIndex(3x)

set the current color index

## NAME

**glIndexd, glIndexf, glIndexi, glIndexs, glIndexub, glIndexdv, glIndexfv, glIndexiv, glIndexsv, glIndexubv** - set the current color index

## C SPECIFICATION

void **glIndexd**( GLdouble *c* )

```

```

void **glIndexf**( GLfloat *c* )

```

```

void **glIndexi**( GLint *c* )

```

```

void **glIndexs**( GLshort *c* )

```

```

void **glIndexub**( GLubyte c);
