|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Thank you to all who responded to my previous posting asking for advice on improving animation. I am employing several of the suggestions. Currently, I am stalled on how to obtain the CGContextRef associated with an HIView. The HIView will contain all the Quartz drawing my app will do and is updated at 10 Hz from an EventTimer which sends a kEventControlDraw to the HIView to have it draw itself. This is done by my app creating the event, sending it, and having a handler catch it and pull out of the event the CGContextRef. Since no where in my code to I explicitly create or obtain the CGContextRef associated with the HIView, I don't know how to obtain it and add it as a parameter to the Draw event. The kEventControlDraw that is sent due to window resizing, etc., automatically provides the context as a parameter to the event. I did find QDBeginCGContext, but don't know if that's a proper way to obtain the context. Suggestions? David --------------------------------------------------------------- David Knuth Intellibot® Robotics, LLC 12820 West Creek Parkway, Suite B, Richmond VA 23238 (804) 784-9888 x228 office, x223 lab (804) 301-2566 cell |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.