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 _destruct

protected void _destruct()

Description

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


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 };