PDA

View Full Version : Background image using OpenGL ES 2.0



Erik Hellman
06-28-2010, 11:12 PM
Hi,

I'm trying to find the best method for putting a background image in my scene. The image is a normal static bitmap that shall always be displayed in the far back covering the entire window, regardless of how the rest of the scene looks like.

I'm doing this using OpenGL ES 2.0.

One way to do it would be to simply create a plane where I render the bitmap as a texture, but then I need to keep the plane in mine every time I move some other object in my scene. Also, it would make it a bit more complex if the window changes it size.

What I would like to have is a method for basically blitting a bitmap onto the framebuffer before I start rendering my scene. How would I do this using OpenGL ES 2.0?

Thanks,
Erik