Sign in to follow this  

Accessing texture data

This topic is 4860 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

Hi What is the easiest way to access the data of a texture in video memory? I've looked at the gl-functions to access the framebuffer, but that requires that I render the texture first (correct?), a thing I want to avoid. Thanks

Share this post


Link to post
Share on other sites
Well there's glGetTexImage which can give you a copy of some texture data, but remember that reading a texture back from video memory can be extremely slow, if you're planning to use this per-frame for some realtime application you may have to rethink how you're going to do it.

Share this post


Link to post
Share on other sites
Great!

That seems to be exactly what I was looking for. Thank you.

Quote:

reading a texture back from video memory can be extremely slow


Yep, I know... I need it to save textures that has been created earlier in my app.

Share this post


Link to post
Share on other sites

This topic is 4860 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.

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