PDA

View Full Version : Is there a way to read only a few texels from a texture ?



fuxifuxi
10-26-2003, 07:08 AM
Hello. I need to read only a few texels from a texture. Something like glGetTexImage, but only for a small portion of the texture.

Thanks

roffe
10-26-2003, 08:09 AM
Originally posted by fuxifuxi:

Hello. I need to read only a few texels from a texture. Something like glGetTexImage, but only for a small portion of the texture.

Thanks

There is no glGetTexSubImage. Render selected part of your texture with orthographic projection and read it back with glReadPixels.