OpenGL example
The program demonstrates the use of the OpenGL lighting model. A icosahedron is drawn using a grey material characteristic. A single light source illuminates the object. Example adapted from light.c.
The original example code can be found in OpenGL distribution in examples/light.pl .
To install Prima::OpenGL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prima::OpenGL
CPAN shell
perl -MCPAN -e shell install Prima::OpenGL
For more information on module installation, please visit the detailed CPAN module installation guide.