Original Post
🔒 Locked
read from texture
Advertisement
Quote:
Original post by kelley
Is there a way to read back data from a texture in video memory? I know how do it in Direct3D (for example, using D3DXSaveTextureToFileInMemory()), but I was wondering if there was a way to do it in OpenGL.
Thanks!
Most the time you'll be dealing with Bitmap Data in memory when you're manipulating graphics, if not directly compressed TGA and/or JPEG, but mostly Bitmap Bits for handling the pixels.
That's if you mean is it possible to read data stored in memory the answer's yes.
Normally you don't focus on that stuff though as hardware usually handles it in the background, using the functions for accessing this data is the exact opposite of loading it, but you've got to load it to display it anyways so you should have either a graphics handle/pointer, or method to the memory address where the pixel data's stored, or object.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement