Tuesday, November 24, 2009

OpenGL and UIKit

Just recently I finished a cover flow like control. I used the OpenGL implemention from Chaos in Motion (http://www.chaosinmotion.com/flowcover.m). I layered UIKit ontop of the OpenGL. Surprisingly or maybe unsurprisingly it runs really fast on my iPhone 3GS. At the iPhone tech talk in London, Schaffer dropped on the group that it is okay to do this. Just not the other way around. Because of the composite nature of UIKit the drawing doesn't take a huge hit when rendered on top of one OpenGL layer. Do this with many OpenGL layers and that's another story. I did my best to implement just about every UIKit feature I could think of on top of Chaos In Motions OpenGL layer. Very slick and cool. Will post the project later.

No comments: