Gambas Documentation - /comp/gb.opengl/gl/genlists

# Gl.GenLists (gb.opengl)

Static Function GenLists ( Count As Integer ) As Integer

Generate a contiguous set of empty display lists.

### Parameters

range

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

### Description

Gl.GenLists 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 Gl.GenLists is executed between the execution of Gl.Begin and the corresponding execution of Gl.End.

### Associated Gets

Gl.IsList

### See also

- Gl.CallList,

- Gl.CallLists,

- Gl.DeleteLists,

Gl.NewList

See original documentation on OpenGL website