-
-
09 Jan 2019 20:13:22 UTC
- Distribution: OpenGL-Sandbox-V1
- Module version: 0.042
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (22 / 0 / 12)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Perl: v5.14.0
- Activity
24 month- Tools
- Download (95.45KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
OpenGL::Sandbox::V1::DisplayList - Wrapper class for display lists
VERSION
version 0.042
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) 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.
Module Install Instructions
To install OpenGL::Sandbox::V1, copy and paste the appropriate command in to your terminal.
cpanm OpenGL::Sandbox::V1
perl -MCPAN -e shell install OpenGL::Sandbox::V1
For more information on module installation, please visit the detailed CPAN module installation guide.