ADC Home > Reference Library > Technical Q&As > Legacy Documents > Graphics & Imaging >
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
Q: What can be done to prevent asynchronous OpenGL animation driven via a Carbon Timer from drawing over menus?
A: There are two cases to discuss in handling menus and asynchronous animation.
- Using Carbon Events
- Using WaitNextEvent
One needs to support two events and toggle animation when
these are received.
One wants to stop animating when receiving mouseDown type
events whose part code is
These techniques allow simple handling of the deconfliction of Mac OS 9 menus with asynchronous hardware accelerated OpenGL blitting.
Mac OS X, of course, handles this integration automatically and does not need any of these techniques.
[Jul 10 2001]