Minggu, 20 September 2009

Some Desktop GL Goodies

No time for a tutorial or lengthy description, but I thought I'd quickly post a few Xcode projects I've got.

First is the OpenGL ES icosahedron project from way back in OpenGL ES from the Ground Up, Part 2, only ported to Cocoa for the Mac. This is the very first one, with no lighting. It does show how to set up OpenGL ES on the desktop, including toggling full-screen mode. You can also use the arrow keys to increase or decrease the rotation speed.

Second, I've taken Apple's very old NSOpenGLView Full Screen sample code, and updated it to use the modern approach that works nicely with multiple displays and multiple GPUs. You can find the updated Xcode project here.

Third, here's another version of NSOpenGLView Full Screen sample code that creates a dedicated full screen app that doesn't support a windowed mode.

0 komentar:

Posting Komentar

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Lady Gaga, Salman Khan