2D Graphics library?

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

  1. xArtx macrumors 6502a

    Mar 30, 2012
    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:
    Don't know why there isn't a vector based GPS app for hiking yet??
    Cheers, Art.
  2. ArtOfWarfare macrumors G3


    Nov 26, 2007
    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


    Staff Member

    Sep 2, 2004
    The Centennial State
    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

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

    Mar 30, 2012
    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