Is there a way to grab the pixels from an UIWebView and render it to an opengl开发者_运维知识库 texture?
I don't know what it takes to load an opengl texture. But this will convert the data from a view into a jpeg.
UIGraphicsBeginImageContext(self.bounds.size);
[self.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
sorry for the half answer. hope someone can take it from here...
精彩评论