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: Resizing window



If I just resize the window, the composition doesn't rescale. If I follow
the workaround below, where I clear and set the view of the GLcontext, the
composition rescales appropriately, however the values reported by the
"Rendering Destination Dimensions" patch don't update.

How does the Quartz Composer App work, where the viewer window can be
resized dynamically, or displayed in fullscreen ? The composition seems to
scale dynamically, without a problem, and I have tested the values from
Rendering Dimensions and it updates perfectly.

I must be missing something fundamental here. May be the answer is that I
should use a QCView rather than a QCRenderer...

I'll be happy to prepare a test case later in the week.

Cheers,
Guy

Pierre-Olivier Latour <email@hidden> wrote:

>> My Quartz composition is in an OpenGLContext in an NSWindow.
>> 
>> If I change the size of the window, using setFrame, the composition
>> does not
>> scale accordingly, but remains at the original resolution. i.e. if
>> the width
>> and height of the window are halved, one only sees the top left
>> quarter of
>> the composition area.
>> 
>> I have found a workaround :-
>> 
>>             [_openGLContext clearDrawable];
>>             [_window setFrame:rect display:NO];
>>             [_openGLContext setView: [_window contentView]];
>> 
>> 
>> However this seems like a using a hammer to crack a nut. Is there
>> any way to
>> force the QC composition to rescale with the window ?
> 
> There's a bug in the QCRenderer where it does pick up automatically
> OpenGL viewport changes and this affect the rendering of some
> compositions. The only workaround is to destroy / recreate the
> renderer when rendering dimensions change.
> 
> However, it does not seem that this is what you're encountering: can
> you send me a test case?
> 
> 
> ________________________________________________________
> Pierre-Olivier Latour                            email@hidden
> Quartz Composer Architect                Graphics & 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: 
 >Re: Resizing window (From: Pierre-Olivier Latour <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.