Pike v8.1 release 6

Class GLUE.List

Inheritance graph
GLUE.List GLUE.DynList
Description

A display list abstraction. Automatically allocates a display list id upon creation and correctly deallocate it upon destruction.

See also

DynList


Method create

GLUE.List GLUE.List(void|function(:void) f)

Description

When creating a new list, the list code can be compiled upon creation by supplying a function f that performs the GL operations.

See also

call

Example

List list = List() { // GL code };


Method destroy

protected void destroy()

Description

Deletes this list and frees the list id from the id pool.