Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pinch-Zoom with GLSurfaceView

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.

like image 502
Nemanja Avatar asked Aug 15 '11 16:08

Nemanja


1 Answers

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

like image 162
Mohammed Azharuddin Shaikh Avatar answered Nov 15 '22 00:11

Mohammed Azharuddin Shaikh