• 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
How to do Blitters in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to do Blitters in Cocoa


  • Subject: How to do Blitters in Cocoa
  • From: Lee A Morgan <email@hidden>
  • Date: Fri, 17 Oct 2003 16:37:23 -0400

Hi all I posted this to the mac-games-dev list and didn't get much help so I figured its pretty close to general app direct pixel access.

What's the "proper" way to do a custom blit in Cocoa (that is not using QuickDraw, OpenGL or Quartz).
In the past when I programmed in Carbon I would simply use QuickDraw to setup two GWorlds then get the base address of them and copy them pixels from one to another. However it doesn't seem to be the Cocoa way of doing this...and thats what I would like to learn.

What I need is a way to setup a few GWorld like buffers to hold a few sprites then a blank buffer to do some custom drawing. Then blit them to the window's buffer. Then I would just tell then window to flush the buffer. I know how to do the blitting; I just need to know how to setup blank buffers and load images into them.

Thanks for all the help.

FYI I can't use OpenGL because its not hardware accelerated on the low end machine I have to support, I can't use Quartz cause its way to slow on even the faster machines and I could use QuickDraw but like I said it I would rather learn the "Cocoa way" of doing this.

Lee A Morgan
Mac Game Developer
Satellite, Wide-band & Telemetry Specialist
_______________________________________________
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: How to do Blitters in Cocoa
      • From: Shawn Erickson <email@hidden>
    • Re: How to do Blitters in Cocoa
      • From: "Alastair J.Houghton" <email@hidden>
  • Prev by Date: Re: Creating an Alert pop-up from a tool/service?
  • Next by Date: Re: How to do Blitters in Cocoa
  • Previous by thread: Re: Creating an Alert pop-up from a tool/service?
  • Next by thread: Re: How to do Blitters in Cocoa
  • Index(es):
    • Date
    • Thread