PDA

View Full Version : glReadPixels from texture



ajbiv
04-10-2009, 08:53 AM
I have a background texture that I am drawing too. I want to read the background texture and create an image.

I had this working before I moved to a background texture. I just used glReadPixels() to read the whole thing and then wrote out the binary data. That part I get...

Is there a way I can ask the background texture for its pixels so i don't get all the other stuff on my screen when I create the image?

eile
04-13-2009, 03:33 AM
see glGetTexImage