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: Dialog Disappearance



At 4:05 PM -0800 12/17/00, Roland Gustafsson wrote:
I have tried it with a Voodoo 3 3000 running the latest drivers and it does
*not* work... so it seems the safest way to display a dialog is to
disconnect the drawable ie: aglSetDrawable(context,NULL) display the dialog
and then reconnect the drawable. I have not tried this but it would probably
work. Disconnecting the drawable will probably cause screen glitches but at
least you'll be able to see the dialog box.

This is what you HAVE to do. You can't use QuickDraw on top of OpenGL in any normal manner. The bottom line is that you that you to sync the pipeline with a glFinish and then draw your 2D stuff on top of that. Realize that this only works because Mac OS 9 is lazy about updating drawables. Mac OS X will swap from the back buffer on it own to keep the front buffer valid. This will cause redraw over things that are drawn directly to the front buffer. The best and only real complete valid solution is to set the drawable to NULL prior to drawing the system dialogs.

Regards,
--
Geoff Stahl
Manager
Apple
Worldwide Developer Relations


References: 
 >Re: Dialog Disappearance (From: Roland Gustafsson <email@hidden>)



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.