| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
That's right, the dimensions of the canvas are undefined in that example, therefor the exception. Canvas dimensions are retrieved from the OpenGL context viewport (which in the case of a QCView matches its dimensions). Just add this line of code before creating the QCRenderer: #include <OpenGL/CGLMacro.h> CGLContextObj cgl_ctx = [context CGLContextObj]; if(cgl_ctx) glViewport(0, 0, width, height); This will configure the viewport of the OpenGL context to the request width & height ________________________________________________________ Pierre-Olivier Latour email@hidden Quartz Composer Architect Graphic & Imaging Team |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden This email sent to email@hidden
| References: | |
| >Saving the result of processing an image to another image (From: Benoit Marchant <email@hidden>) | |
| >Re: Saving the result of processing an image to another image (From: Dan Wood - Discussion Lists <email@hidden>) | |
| >Re: Saving the result of processing an image to another image (From: Pierre-Olivier Latour <email@hidden>) | |
| >Re: Saving the result of processing an image to another image (From: Dan Wood - Discussion Lists <email@hidden>) |
| Home | Archives | FAQ | 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 © 2007 Apple Inc. All rights reserved.