开发者

Pinch-Zoom with GLSurfaceView

开发者 https://www.devze.com 2023-03-28 18:29 出处:网络
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.

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 wil开发者_JAVA技巧l do it if it will nelp you in answering.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消