BP


OpenGL for Win32


A picture is worth a thousand words.
Napolon

*** The contents of this page are obsolete ***

See the new page

Introduction

OpenGL is the most widely adopted, cross-platform standard for 3D rendering and 3D hardware acceleration. The software runtime library ships with all Windows, MacOS, Linux and Unix systems.
OpenGL is built for compatibility across hardware and operating systems. This architecture makes it easy to port OpenGL programs from one system to another.

The OpenGL Perl module allows a Perl program to use OpenGL by letting it make OpenGL function calls.

You will find here a ppm package for this module. It uses GLUT for Win32, a port by Nate Robins of the original GLUT (OpenGL Utility Toolkit) library written by Mark Kilgard.

Limitations, bugs

Caveats

Implementation dependent differences:

(from the Nate Robins readme-file README-win32.txt )

There are a few differences between the Win32 version of GLUT and the X11 version of GLUT. Those are outlined here. Note that MOST of these differences are allowed by the GLUT specification. Bugs and unsupported features are outlined in the next section.

Unsupported/Bugs:

Download

The package is in my ppm repository.
If you are using ActiveState's Perl distribution (Perl5.6 or Perl5.8), the easiest way to install this module is to use ppm. Type (or cut & paste) this command in a DOS console:

     ppm install http://www.bribes.org/perl/ppm/OpenGL.ppd

The documentation, in html format, is at its usual location.

You can download the patched source file here: OpenGL-0.54.03.tar.gz
Instructions for compiling the module with MSVC++ are in the README.Win32 file.
You can also use this patch: OpenGL-0.54.patch.

Keep in mind that this module is still in beta stage for Windows.
Report bug (for this version only) to jl_morel@bribes.org. Thanks.

Example script

To test the module, I translated in Perl some classic C programs for OpenGL.
Download the package (demos.zip) and run the scripts to test the module on your machine.

gears   teapot

glutmech

noof   cube

The last screenshot is the one of the script cube.pl, an adaptation in Perl of the Chris Halsall's programme cube.c.
See the O'Reilly Network.

Links

Back to Top


BP 2004 J-L Morel - Contact : jl_morel@bribes.org [Validation HTML 4.0!]