Search code examples
iostransparenteaglview

Make an EAGLView transparent?


It's possible to place in a UIViewController object an EAGLView object and make the background of EAGLView transparent in order to view what is behind?

Thanks.

-UPDATE----

I've tried which appears in this post. But still the layer of the EAGLView appears like a black square. :(

Any idea why this is not working for me?


Solution

  • openGLView.opaque = NO

    Also pay attention on correct opacity in alpha channel of OpenGL framebuffer. And pay attention on Tark answer about performance drop.