How to do Blitters in Cocoa
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.