OpenGL::Simple::ViewerSimple 3D geometry viewer using GLUT | |
Download |
OpenGL::Simple::Viewer Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Jonathan Chin
- Publisher web site:
- http://search.cpan.org/~jchin/
OpenGL::Simple::Viewer Tags
OpenGL::Simple::Viewer Description
Simple 3D geometry viewer using GLUT OpenGL::Simple::Viewer is a Perl module that provides a simple OpenGL geometry viewer, through the GLUT library. An instance of OpenGL::Simple::Viewer opens a GLUT window, and renders some geometry provided through a callback subroutine; the geometry can be rotated, translated, and zoomed using the mouse.When the viewer moves around, the window must be redrawn; this usually entails clearing the window, redrawing the background, setting the correct position and orientation, and then drawing the geometry. By default, all you need to supply is a subroutine which draws the geometry; everything else is taken care of. User-defined backgrounds can be set through a callback.SYNOPSIS use OpenGL::Simple::Viewer; use OpenGL::Simple::GLUT qw(:all); glutInit; my $v = new OpenGL::Simple::Viewer( draw_geometry => sub { glutSolidTeapot(1.0); } ); glutMainLoop; Requirements: · Perl
OpenGL::Simple::Viewer Related Software