6

I have a following problem -

I am developing an application and i decided for the GLSurfaceView because i needed openGl for a better and more natural page curl animation.

Having achieved that, now i find myself in a bit of a problem, since i cannot find a tutorial of any kind to implement pinch zoom on GLSurfaceView. I captured the event, the distances between fingers, scale, etc... But i do not know how to perform the actual transformation.

I found the one transforming ImageView via matrix, but alas...

Anyone done pinch zooming in openGl?

I don't think there is any need to post the code, but i will do it if it will nelp you in answering.

genpfault
  • 51,148
  • 11
  • 85
  • 139
Nemanja
  • 1,505
  • 12
  • 24

1 Answers1

7

you can use the concept of scalegesturedetector to implement Pinch zoom , refer http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html

Mohammed Azharuddin Shaikh
  • 41,633
  • 14
  • 96
  • 115
  • 1
    Don't know how i couldn't find this - i searched for a while! Thank you very much, this is all i need. – Nemanja Aug 15 '11 at 19:59