Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xArtx

macrumors 6502a
Original poster
Mar 30, 2012
764
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.
 
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...
 
Check out OpenGL but you're probably going to be faster off using existing map code.
 
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 :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.