iDevGames Forums
Cococa Draw vs OpenGL 2D - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Programming Languages & Scripting (/forum-8.html)
+--- Thread: Cococa Draw vs OpenGL 2D (/thread-1631.html)



Cococa Draw vs OpenGL 2D - ripter - Mar 14, 2009 12:07 AM

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?

Thanks!


Cococa Draw vs OpenGL 2D - AnotherJake - Mar 14, 2009 12:19 AM

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