I'm buying a Mac for my niece and it should arrive in a few days. Before giving it to her I'll get some chance to play with it for about a week and I thought I should use the opportunity to add Mac support to my framework. So now I'm looking for some sample code I could use as a starting point to learn how to setup OpenGL. I want code that's interfacing the Mac GL system directly and not some kind of abstraction like glut. Unfortunately, I've been googling like mad for several hours and pretty much everything I find it glut based. Does anyone have know of any simple example code that just opens a window, creates a GL context and maybe renders a triangle or something along those lines and is not using glut?