Hi
Does anyone know how to read the colours of the pixels in a texture, without having to display it on a polygon and then use a function such as Glut Read Pixels.
Many
thanks
D
Hi
Does anyone know how to read the colours of the pixels in a texture, without having to display it on a polygon and then use a function such as Glut Read Pixels.
Many
thanks
D
glGetTexImage(…)
btw mightnt be that quick
You could loop through the image data between loading it and turning it into a texture. I use this for colour keying in my app and doesent take too long.