Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vertical retrace



> Two things. First, don't do that. ;)
>
> No really. Blitting to VRAM has been a no-no for a LONG time now. Use
> QuickDraw for your blits if you need to move a QD surface.

Direct to screen drawing (full screen) is still fully supported by
CoreGraphics. Just capture the screen (CGCaptureAllDisplays), get the base
address and other parameters officially (CGDisplayBaseAddress,
CGDisplayBytesPerRow,...), and set up a Quickdraw port if you want to use
Quickdraw too (CGCreateNewPortForCGDisplayID). Actually this is so well
supported that it's a bit strange everyone is saying "don't do that".

Of course I do agree there are better ways of drawing than direct-to-VRAM
blitting. I'm just saying it's not a definite no-no AFAIK. Just do it the
right way, if you even want to do it. It can be a time saver when porting
games, but I wouldn't do it for a new design.

Of course this is all full-screen only. If you want windows and menus,
forget about direct-to-VRAM altogether. It definitely does not mix with the
Quartz compositing engine. Blit to the back buffers and let Quartz do its
thing.
_______________________________________________
mac-games-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mac-games-dev
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.