Sign in to follow this  
AntonyCoder

Downloading a gl texture into memory/cpu space.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this