Re: Slightly OT (Rant: Problems with CIImageAccumulator and friends)
Re: Slightly OT (Rant: Problems with CIImageAccumulator and friends)
- Subject: Re: Slightly OT (Rant: Problems with CIImageAccumulator and friends)
- From: Erik Buck <email@hidden>
- Date: Wed, 24 Aug 2005 12:04:28 -0700 (PDT)
Here is what I do to use the output image of a CIImageAccumulator as a GL texture.
- Create a GL pixel buffer
- Create a new GL context and assign the pixel buffer to it
- Create a CI context using the CGLContextObj obtained from the GL context
- Create the CIImageAccumulator with appropriate filters and pipeline etc.
- Use the CI context to draw the CIImage obtained from the CIImageAccumulator into the GL context associated with the CI context.
--------------------------------------------------------------------------------
*At this point, I have the output image from the CIImageAccumulator in a GL pixel buffer that I can use as a GL texture
- I still have to use the current GL context's -setTextureImageToPixelBuffer: to use the texture.
Here is what I am thinking:
CIImageAccumulator already has an extent and a format and an output image.
Why can't/doesn't CIImageAccumulator have a -setTextureImage method that created a pixel buffer sized to match CIImageAccumulator's extent and format than do all the work to draw the CIImageAccumulator's image into that pixel buffer and make the pixel buffer current GL context's bound texture ?
I think I could probably add all of this as a category to CIImageAccumulator. I just can't help thinking that I am missing some important detail! Is this an enhancement request ? Is the an easier way to do all of this that I don't know ?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden