PDA

View Full Version : Question about quartz 2D




Mac Player
May 5, 2008, 03:48 PM
Is quartz 2D appropriate for developing a tetris like game?

TIA

I just tested an example from apple's site. Rotating an image took 40% of one core. MBP 2.16.



HiRez
May 5, 2008, 06:06 PM
You could use it, but I'd think OpenGL would be much more appropriate (even if you're working in 2D). You could still use Quartz to render images into your OpenGL textures, though.

sord
May 5, 2008, 08:47 PM
Although I agree OpenGL would probably be the best option, SDL may be the easiest for you to learn. www.libsdl.org has an OS X framework and XCode templates.

Catfish_Man
May 5, 2008, 09:31 PM
Personally, I'd use CoreAnimation :) Make each shape a layer and you can manipulate them rather easily, and with good performance.