Jump to content

  • Log In with Google      Sign In   
  • Create Account

looking for gl function that returns surface color


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 run_g   Members   -  Reputation: 212

Like
1Likes
Like

Posted 09 January 2013 - 04:49 PM

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

Sponsor:

#2 C0lumbo   Crossbones+   -  Reputation: 2297

Like
1Likes
Like

Posted 10 January 2013 - 03:01 AM

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.



#3 run_g   Members   -  Reputation: 212

Like
0Likes
Like

Posted 10 January 2013 - 01:38 PM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS