On Dec 21, 2007 2:02 PM, Christopher Wright <[EMAIL PROTECTED]> wrote:
> > Just a quick followup, for what it's worth :
> > You *can* get the viewport dimensions in the plugin via  [[[self
> > patch] renderingContext] frame].  Which actually seems to work fine,
> > but it is going though 3 private methods with two private classes,
> > which seems a tad fragile...
>
> Pierre will probably yell at you for that ;)
>
> for a less fragile solution, maybe try
>
> GLint params[4];
> glGetIntegerv(GL_VIEWPORT,params);
>
>

Good idea, though plugins (or their image providers) don't get
re-executed when the viewport size changes.  Official plugins seem to
receive information about this through -[QCPatch
receiveMessage:name:attributes:], but I can't see any way to sign up
for those notifications (at least, not a supported way...)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to