The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OpenGL::Sandbox::V1::DisplayList - Wrapper class for display lists

VERSION

version 0.01_1

ATTRIBUTES

id

Return the ID number of the display list. This remains undef until compiled.

METHODS

new

Constructor. Takes no arguments. The returned class is a blessed scalar ref, so not very extensible, but very lightweight. This does not allocate a list id until you compile the list. The destructor will delete the list if one was allocated.

compile

  $list->compile(sub { ... });

Compile a display list from the OpenGL commands executed within the given coderef. To compile and execute simultaneously, just use "call".

call

  $list->call;
  $list->call(sub { ... });

Call the display list, or if it hasn't been allocated yet, compile the sub first.

AUTHOR

Michael Conrad <mike@nrdvana.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Michael Conrad.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.