• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSView drawRect: QuickDraw, CoreGraphics, OpenGL ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView drawRect: QuickDraw, CoreGraphics, OpenGL ?


  • Subject: NSView drawRect: QuickDraw, CoreGraphics, OpenGL ?
  • From: Nat! <email@hidden>
  • Date: Sat, 12 Oct 2002 02:25:57 +0200

So the suggestions I got from my previous thread "Can I get AppKit to draw this faster ?", confirmed my impression that AppKit is unsuitable for performant blitting operations. Offhand I can see four ways to get what I want

a) write my own "graphics kit" and render into a NSBitmapImageRep. That would be painful.

b) use OpenGL. Do I still need NSOpenGLView ? Can a NSOpenGLView be transparent now ? Can I use a mixture of OpenGL calls and AppKit calls now in 10.2 ? F.i. can I draw a border with NSBezierPath, draw lines with OpenGL and then put some text over it with NSAttributedString ? I think I read somewhere that this is possible now.

c) use CoreGraphics call. I am also unsure whether I can freely mix CoreGraphics calls and AppKit calls. Is NSGraphicsContext "toll free bridged" with CGGraphicsContext ?

d) Quickdraw. Can I use Quickdraw calls inside drawRect: and how ?

e) what's the Apple suggested way to do performant graphics operations in Cocoa ?


Lotsa questions. Is any of that covered in the Cocoa books ? I'll buy that one :)

Ciao
Nat!

Jedenfalls sind zehn Fehlstarts hintereinander [E. Fuchs]
ein sehr interessanter Beweis
fuer unsere Theorie
von der natuerlichen Ueberlegenheit des Dezimalsystems
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSView drawRect: QuickDraw, CoreGraphics, OpenGL ?
      • From: Brent Gulanowski <email@hidden>
  • Prev by Date: Re: Cocoa Books (was New to Cocoa)
  • Next by Date: Re: Cocoa Books (was New to Cocoa)
  • Previous by thread: Re: STL vector not working
  • Next by thread: Re: NSView drawRect: QuickDraw, CoreGraphics, OpenGL ?
  • Index(es):
    • Date
    • Thread