Sign in to follow this  

Downloading a gl texture into memory/cpu space.

This topic is 4238 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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;

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Solved. It's glGetTexImage for anyone else interested.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this