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

# glGenLists(3x)

generate a contiguous set of empty display lists

## NAME

**glGenLists** - generate a contiguous set of empty display lists

## C SPECIFICATION

GLuint **glGenLists**( GLsizei *range* )

```

```

## PARAMETERS

- *range*

  Specifies the number of contiguous empty display lists to be generated.

## DESCRIPTION

**glGenLists** has one argument, *range*. It returns an integer *n* such that *range* contiguous empty display lists, named *n*, *n*+1, ..., *n*+*range* -1, are created. If *range* is 0, if there is no group of *range* contiguous names available, or if any error is generated, no display lists are generated, and 0 is returned.

## ERRORS

**GL\_INVALID\_VALUE** is generated if *range* is negative.

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

## ASSOCIATED GETS

**glIsList**

## SEE ALSO

**glCallList(3G)**, **glCallLists(3G)**, **glDeleteLists(3G)**, **glNewList(3G)**
