Wednesday, June 25, 2008

GLOSX Quick Trick

If you're using GLUT in OS X and you need to enable VSync you can do it by adding the following two lines of code to your project and including

int vsync = 1;
CGLSetParameter(CGLGetCurrentContext(), kCGLCPSwapInterval, &vsync);

I usually toss it in right after my call to glutCreateWindow.

Monday, June 23, 2008

OpenGL Programming On Mac OS X

I've had this book on my shelf for a while now, referring to it as I need it, but I've finally decided to give it a thorough reading.  The first five chapters provide background material for the graphics layers in OS X, and the API bindings are discussed in chapter 6 and onwards. 

The book is well written and I'd recommend it to any new Mac OpenGL developer.

Andrew