开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜