PDA

View Full Version : graphics




jamesapp
Jun 9, 2008, 11:05 AM
does anyone know of a resource(i.e. book, web tutorial) on graphics.
Like drawing lines, rectangles, circles etc.



toddburch
Jun 9, 2008, 11:19 AM
Which GUI?

lee1210
Jun 9, 2008, 11:23 AM
I am not going to be a good resource for this, but would ask that you clarify what you're wanting. Do you want to do this with Quartz in Cocoa? Do you want to do OpenGL in C++? I think if you're more specific you might get more replies.

-Lee

Cromulent
Jun 9, 2008, 11:59 AM
Carbon, Cocoa, GTK+, Qt, OpenGL?

jamesapp
Jun 9, 2008, 03:41 PM
i own a macbook pro running mac os x 10.5.2.
i have installed xcode and the developer tools.
i have been programming in objective-c and c.
I haven't come across any subjects on graphics in the programming books i have been reading. I have used q-basic and was able to do simple things like drawing lines and geometrical shapes, i have also done some primitive animation in q-basic, i thought my macbook would be able to do similar if not better things. Just don't know where to begin.

Cromulent
Jun 9, 2008, 03:54 PM
i own a macbook pro running mac os x 10.5.2.
i have installed xcode and the developer tools.
i have been programming in objective-c and c.
I haven't come across any subjects on graphics in the programming books i have been reading. I have used q-basic and was able to do simple things like drawing lines and geometrical shapes, i have also done some primitive animation in q-basic, i thought my macbook would be able to do similar if not better things. Just don't know where to begin.

You have not answered the questions. Which API do you want to use?

You could use any of the APIs I listed above for drawing objects, there is Quartz in Cocoa. Carbon has drawing functions. OpenGL allows you to do 2D drawing. Which do you want to use?

lee1210
Jun 9, 2008, 05:15 PM
I don't think the problem is that there's not the ability to do what you want on your macbook, but that there are too many different ways. If you are working with objective-c and cocoa already, try this out:
http://cocoadevcentral.com/d/intro_to_quartz/

I didn't see lines mentioned, but rectangles and points are in that tutorial. I think you should be on your way if you work through that.

-Lee

lazydog
Jun 9, 2008, 06:04 PM
i own a macbook pro running mac os x 10.5.2.
i have installed xcode and the developer tools.
i have been programming in objective-c and c.... Just don't know where to begin.

You could start here (http://developer.apple.com/graphicsimaging/) :)

b e n