Simplified GL coding for Mac and iPhone.