Announcing iGLU: OpenGL Utility Library for iPhone OS
Recently, while working on an OpenGL-based iPhone application, I found that I needed to use tessellation to transform some complex polygons into triangles. The OpenGL Utility Library (GLU) supports tessellation (via GLUtesselator). Unfortunately, iPhone OS doesn't include a GLU implementation.
After failing to find a standalone tessellation library that met my needs, I decided to take a look at the GLU implementation included with Mesa. The Mesa GLU is based on code from SGI's OpenGL Sample Implementation, and it turned out to be relatively easy to extract it from MesaLib. After some minor changes to the source and Makefiles, I succeeded in producing libGLU.a's for both the iPhone simulator and the device.
Since this may be of interest to other iPhone developers, I've packaged it up and released it as iGLU. Note that several GLU features (specifically, mipmapping, quadrics, and NURBS) are missing from iGLU, as their implementations depend on functionality that is absent in OpenGL ES 1.1. If someone wants to provide ES-compatible implementations of these features, I'd be happy to include them in iGLU, but I have neither the time nor the inclination to write them myself.
I hope some folks find this package useful. Please direct any questions, comments, or bug reports to the iphone-glu group.