Hi Peter,
You'll want to create the pool outside of the display link callback.
You then acquire the opengl buffer from the pool within the callback
where you have written "CVOpenGLBufferPool". After you have passed
the acquired buffer to QC, you then release it (within the callback).
'hope that makes sense.
Cheers,
-C
On 20/11/2007, at 7:03 AM, Peter Watling wrote:
Is it in the callback you make these changes?
I had this.... And the sample code 'Performer' seems to still do
the same.
static CVReturn _displayLinkCallBack(CVDisplayLinkRef displayLink,
const CVTimeStamp* inNow, const CVTimeStamp* inOutputTime,
CVOptionFlags flagsIn, CVOptionFlags* flagsOut, void*
displayLinkContext)
{
QCApplication* controller =
(QCApplication*)displayLinkContext;
NSAutoreleasePool* pool;
//Create an autorelease pool (necessary to call Obj-C code from
non-Obj-C code)
pool = [NSAutoreleasePool new];
CVOpenGLBufferPool
//Simply ask the application controller to render and display a
new frame
[controller renderAtTime:inOutputTime];
//Destroy the autorelease pool
[pool release];
return kCVReturnSuccess;
}
_______________________________________________
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]