2D Graphics library?

Discussion in 'iOS Programming' started by xArtx, Apr 8, 2012.

  1. xArtx macrumors 6502a

    Joined:
    Mar 30, 2012
    #1
    Hi Guys,
    Is there a 2D graphics library for iPhone development?
    I'm after functionality to draw lines between screen coordinates, and set/clear pixels.

    Pls overlook this if there's something like this in the stock SDK.
    This is coming from someone who hasn't got their Mac yet!
    I'm looking at doing something like this for iPhone:
    http://www.youtube.com/watch?v=BnFCDexfDLk
    Don't know why there isn't a vector based GPS app for hiking yet??
    Cheers, Art.
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    I think Core Graphics / Quartz (which is available both in the Mac and iOS SDKs,) is exactly what you're looking for for drawing 2D points, lines, and other primitives...
     
  3. dejo, Apr 9, 2012
    Last edited: Apr 9, 2012

    dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    You might also want to check out cocos2d.

    P.S. Although by the looks of that YouTube video, you might want a 3D library.
     
  4. robvas macrumors 68020

    Joined:
    Mar 29, 2009
    Location:
    USA
    #4
    Check out OpenGL but you're probably going to be faster off using existing map code.
     
  5. xArtx thread starter macrumors 6502a

    Joined:
    Mar 30, 2012
    #5
    Even the 3D stuff in the video was done with a 2D graphics library.
    I just adjusted the Y coordinate to give the appearance of height for each contour.

    I've done a bit of reading about Quartz, and it appears to be what I want :)
    Thx :)
     

Share This Page