Giancarlo
06-04-2010, 01:48 PM
Hello OpenGLrs,
I have a plane as big as my viewport with a texture mapped on it.
Then there is a cursor with five points arranged as a cross. For each of them I computer the correspondent texture coordinate as
txt.x = pp[i].x/windw.with;
txt.y = pp[i].y/ widnw.height;
So I change the position of the central point, without changing its texture coordinates. I was expecting a stretch of the portion of the image but it doesn't happen anything. So I wonder why? does texture mapping works only over polygons?
Thanks for any help.
Giancarlo
I have a plane as big as my viewport with a texture mapped on it.
Then there is a cursor with five points arranged as a cross. For each of them I computer the correspondent texture coordinate as
txt.x = pp[i].x/windw.with;
txt.y = pp[i].y/ widnw.height;
So I change the position of the central point, without changing its texture coordinates. I was expecting a stretch of the portion of the image but it doesn't happen anything. So I wonder why? does texture mapping works only over polygons?
Thanks for any help.
Giancarlo