NAME
OpenGL::Simple - Another interface to OpenGL
SYNOPSIS
# All your favourite OpenGL functions and constants:
glShadeModel(GL_SMOOTH);
glLight(GL_LIGHT1,GL_AMBIENT,
@LightAmbient
);
glLight(GL_LIGHT1,GL_DIFFUSE,
@LightDiffuse
);
glLight(GL_LIGHT1,GL_SPECULAR,
@LightSpecular
);
glLight(GL_LIGHT1,GL_POSITION,
@LightPos
);
glEnable(GL_LIGHT1);
glEnable(GL_LIGHTING);
glEnable(GL_DEPTH_TEST);
...
DESCRIPTION
This module provides an interface to the OpenGL 3d graphics library; it binds the OpenGL functions and constants to Perl subroutines with a polymorphic interface.
For instance, the twenty-four glVertex*
functions are provided by a single glVertex
routine which dispatches to the correct routine based on the number of arguments.
AUTHORS
Jonathan Chin, <jon-opengl-simple@earth.li> ; Simon Cozens sanitized the code and ported to MacOS X.
SEE ALSO
COPYRIGHT AND LICENSE
Copyright 2004 by Jonathan Chin
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.