0

I'm currently trying to render the content of a UIWebView into an OpenGL texture in real time for an application. Searching on the web, I found a way to do what I wanted here using the renderInContext method of the web view's layer, but it's really slow.

So I have some questions to ask you:

  • I've noticed that even calling renderInContext method, the web view is rendered on the screen. Is there a way to replace the rendering method saying to the web view that we want to render into a texture instead of the screen? (like on Android)

  • Is there a way to know if the web view has been updated (some JavaScript code has modified the page for example) to call the renderInContext only in this case? I didn't find anything about that into the official documentation.

  • I saw that we can allocate specific OpenGL ES texture (CVOpenGLESTexture) with the Core Video framework, is it suitable to web view rendering? Can I use that to improve the performances?

Thanks a lot for your answers.

Noxalus
  • 65
  • 1
  • 11

0 Answers0