Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
A problem about the CIContext draw issue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A problem about the CIContext draw issue?



Hi everyone.
This is my problem.
I have created a CIContext using OpenGL context to draw some CIImage.
It looks like this:
drawContext = [CIContext contextWithCGLContext:[OpenGLContext CGLContextObj]
  pixelFormat:[PixelFormat CGLPixelFormatObj]
  options:nil];
At this point, I have done this thing:
[OpenGLContext setView:myNSView]; 
Here , myNSView is an instance of the NSView class;

However, when I used the drawContext to draw some CIImage object, the myNSView didnt display anything. Can someone tell me what probably  goes wrong here? Or under what occasions should we use the CIContext class method "contextWithCGLContext" ? 
I am wondering what can we do  via creating  a CIContext via the OpenGLContext.

Cheers. Thanks for any help. 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.