Downloading a gl texture into memory/cpu space.
I'm sure it's possible, I just can't find any documentation or examples for it.
I want to download a binded texture's pixel data into main memory to process it on the cpu.
Any ideas how please?
Something like,
myMem = malloc( 512*512*4 );
glCopyTexture GL_TEXTURE_2D,0,0,512,512,GL_RGBA,&myMem
Quote:Original post by Anonymous Poster
Solved. It's glGetTexImage for anyone else interested.
If you're the one loading it, you could always just keep a copy of it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement