Question about quartz 2D

Discussion in 'Mac Programming' started by Mac Player, May 5, 2008.

  1. Mac Player macrumors regular

    Joined:
    Jan 19, 2006
    #1
    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.
     
  2. HiRez macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #2
    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.
     
  3. sord macrumors 6502

    Joined:
    Jun 16, 2004
    #3
    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.
     
  4. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #4
    Personally, I'd use CoreAnimation :) Make each shape a layer and you can manipulate them rather easily, and with good performance.
     

Share This Page