How to get value of texel color from OpenGL texture ? I want get pixel value of a texture to check whether its transparent or not.
Asked
Active
Viewed 306 times
1
-
Are you using fixed pipeline or shaders (OpenGL ES 1.1 or 2.0)? – Alexander May 29 '13 at 14:16
-
I am using fixed pipeline – Krishna May 29 '13 at 14:18
-
[glReadPixels](http://stackoverflow.com/questions/6880487/read-pixels-from-off-screen-opengl-pixel-buffer-in-ios-oopengl-es), [but that only works for framebuffers](http://stackoverflow.com/questions/11863416/read-texture-bytes-with-glreadpixels) – bobobobo Nov 06 '13 at 00:16