• 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
Advice on offscreen drawing.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Advice on offscreen drawing.


  • Subject: Advice on offscreen drawing.
  • From: Oscar Morales Vivó <email@hidden>
  • Date: Thu, 14 Mar 2002 00:40:07 +0100

Hi there. I'm about to start testing on a raytracer renderer I'm building (big bunch of C++ code), and I'd like to build a Cocoa front end for it. I've checked the reference for drawing in views (NSImage et al), but what I need is just a pure 32-bit size-configurable 2D pixel matrix I can draw on the screen after I finish the raytracing (i.e. a pixmap) easily.

Efficiency isn't much of an issue, as raytracing is rather slow as it is, and every pixel is written just once. Ideally I would have a subclass of my canvas object that draws with virtual functions (I try to keep my platform-dependant code nicely isolated). And ideally that subclass would be usable from any Mac OS X API (Carbon, Cocoa, Core...).

Would any kind soul give me some advice on what stuff would be best for my needs, how to use it with Cocoa (the fact that I want it working with other APIs doesn't need I'm going to bother with them now) and if there's any example code that I could use?

Thanks in advance for your help:

Oscar Morales.
_______________________________________________
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: Advice on offscreen drawing.
      • From: "Erik M. Buck" <email@hidden>
  • Prev by Date: Re: dealloc and Instances created from IB
  • Next by Date: Adding drawer
  • Previous by thread: Re: Utility window to minimize
  • Next by thread: Re: Advice on offscreen drawing.
  • Index(es):
    • Date
    • Thread