Cococa Draw vs OpenGL 2D

Posts: 2
Joined: 2009.03
Post: #1
I'm a C# programmer who's just started learning objective-c. So I'm sorry if this is a silly question.

From my understanding Cocoa uses OpenGL, so I'm wondering if there is a large performance difference between using Cocoa's drawing methods vs OpenGL for 2d development?

Quote this message in a reply
Posts: 3,591
Joined: 2003.06
Post: #2
Hey, welcome to iDevGames, ripter! Smile

Cocoa doesn't use OpenGL. Cocoa is its own API, but you'll see OpenGL and Quartz as the two graphics APIs associated with it. Quartz is (AFAIK) 2D only. OpenGL can do 2D and 3D. Generally speaking, OpenGL is much faster than Quartz for just about everything.

So in a nutshell: stick with OpenGL because that's the way to go. Wink
Quote this message in a reply
Post Reply