OpenGL::Sandbox::V1::DisplayList - Wrapper class for display lists
version 0.042
Return the ID number of the display list. This remains undef until compiled.
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.
$list->compile(sub { ... });
Compile a display list from the OpenGL commands executed within the given coderef. To compile and execute simultaneously, just use "call".
$list->call; $list->call(sub { ... });
Call the display list, or if it hasn't been allocated yet, compile the sub first.
Michael Conrad <mike@nrdvana.net>
This software is copyright (c) 2019 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.
To install OpenGL::Sandbox::V1, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenGL::Sandbox::V1
CPAN shell
perl -MCPAN -e shell install OpenGL::Sandbox::V1
For more information on module installation, please visit the detailed CPAN module installation guide.