Source Directory » Libraries » Graphics » AllegroPak
The main features of this package are Z-buffered versions of all of Allegro's polygon-rendering modes, Z-buffered sprites (both flat ones and ones with depth-maps) and Z-buffered lit texture-mapped spheres. There are also functions for converting between Cartesian and Polar coordinates in 3D space, and a few other functions. The two examples that came with it demonstrate higher-level concepts like full viewing-volume (fustrum) 3D polygon clipping and fog-shading.
Because it hasn't been maintained in ages, some of it's functionality has been duplicated by Allegro (eg. z-buffering, or using AllegroGL instead of Allegro's built in 3D polys), and it only works in 8-bit graphics-modes (256-colours). It probably also suffers from bit-rot (was written for Allegro 2.x and has been known to work on Allegro 3.x) and is probably DJGPP only. But it might just work with Allegro 4.x.
There are two pre-compiled demos of AllegroPak available from the web-page.
AllegroPak is no longer maintained. I decided to submit this to the resource directory so that anyone can scavenge the carcass of the sourcecode and extract anything they might find useful.
It is mentioned in the forums at [url http://www.allegro.cc/forums/view_thread.php?_id=264512]