Hi All, I have a small issue.
I need to enlarge(Zoom) Textures when I hold&drag at the corners.
I am using glOrtho() to setup ModelView.
gl.glOrthof(0.0f, screen_width, -screen_height, 0, -1.0f, 1.0f); //Map exact pixel to World Co-od
I am able to do hit-test and detect corners of the images(Textures) on the screen.
Now I need to enlarge(zoom) the image(texture). I have offset values, means how far I moved on the screen in X,Y directions.
If I need to use glScalef(), it will accept values in percentage(I think). How can I map the offset values to this percentage value.
or is there any other way to zoom(ie by enlarging the background polygon vertices, so that the mapped texture will automatically get zoomed) ? In this method, I am fixing the polygon sides at time of Surface Creation.
Please help me in this.
Thanks in advance. Your help is really appreciated.