graphics

Discussion in 'Mac Programming' started by jamesapp, Jun 9, 2008.

  1. macrumors 6502a

    Joined:
    Mar 7, 2008
    #1
    does anyone know of a resource(i.e. book, web tutorial) on graphics.
    Like drawing lines, rectangles, circles etc.
     
  2. macrumors 6502a

    Joined:
    Dec 4, 2006
    Location:
    Katy, Texas
    #2
    Which GUI?
     
  3. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #3
    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
     
  4. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #4
    Carbon, Cocoa, GTK+, Qt, OpenGL?
     
  5. thread starter macrumors 6502a

    Joined:
    Mar 7, 2008
    #5
    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.
     
  6. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #6
    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?
     
  7. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #7
    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
     
  8. macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #8
    You could start here :)

    b e n
     

Share This Page