in reply to Perl Opengl Question

I think you're on the right track with POGL. It's the most actively maintained of the Perl-OpenGL bindings. Check out the examples directory that comes with the distribution.

If you're starting from zero with OpenGL, I can tell you that it's just a simple state machine. You tell it where things are in the universe, and it draws them while you're telling it to. Whatever the current drawing color, lighting settings, model-view matrix, etc., it just does what you tell it to according to its current state.

Using the glu* commands to draw shapes is very easy. Just remember to set up things first (color, light, etc.) before calling them.

Couple quick tips:

Replies are listed 'Best First'.
Re^2: Perl Opengl Question
by Anonymous Monk on Jul 15, 2008 at 14:46 UTC

    Almost forgot: you probably want to use glut to do your windowing and to capture any user input you're interested in (keystrokes and mouse clicks). It's very simple to learn, cross-platform, standard, and has a free implemenation (freeglut).

      BTW - the latest rev of POGL (in SVN) adds FreeGLUT support (which catches close events).

      I'll be posting this to CPAN in the next week or so.

Re: Perl Opengl Question
by grafman (Acolyte) on Jul 15, 2008 at 18:28 UTC
    Thanks for the POGL plug, Anon :^)

    You can find the following at POGL:

    If that doesn't help, send me an email at grafman-at-graphcomp.com