Hi All,
I'm passing a structure (array of images) from Quartz Composer into a
custom QCPlugIn.
My declaration for the property is:
@property(assign) NSDictionary* inputImages;
Then my code is:
images = self.inputImages;
id<QCPlugInInputImageSource> imageFront = [images
objectForKey:@"imageYes"];
[qcContext logMessage:@"********* IMAGEFRONT IS %d", imageFront]; //
this is not null
if(imageFront && [imageFront lockTextureRepresentationWithColorSpace:
([imageFront shouldColorMatch] ? [qcContext colorSpace] : [imageFront
imageColorSpace]) forBounds:[imageFront imageBounds]]) {
[imageFront bindTextureRepresentationToCGLContext:cgl_ctx
textureUnit:GL_TEXTURE0 normalizeCoordinates:YES];
bTexture = YES;
}
But my QC crashes with the error above. The long <if> statement is a
direct copy/paste from the GLSquare sample, and when I send in the
same image on its own it works fine, but doesn't work when I try to
extract it from the NSDictionary. Does anyone know where I'm going
wrong?
Cheers,
Memo (Mehmet S. Akten)
www.memo.tv
[EMAIL PROTECTED]
_______________________________________________
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]