looking for gl function that returns surface color

Started by
1 comment, last by run_g 11 years, 3 months ago
This might seem simple but i just cant find the answer:- in opengl es (fixed function) lets say u texture map a bitmap to a regular polygon- so the bitmap is now stretched and thus relative position of the color points on the rectangle is different from original bitmap- is there is a way ... I mean a gl. function that- if given the x,y coord on the rectangle surface relative to say the top left rectangle coord as a parameter- will return the colour of that point? Many thanks in advance
Advertisement

Aside from actually rendering it, then reading it back with glReadPixels or something, no. There's no simple method for simulating even very basic texture sampling functionality on the CPU in OpenGLES.

Too bad...trying recover some grip point positions. Anyway many thanks for yr answer

This topic is closed to new replies.

Advertisement