View Full Version : Pan Functionality in GLSurfaceview in Android

07-08-2013, 05:07 AM
I am in the process of developing an Android app similar in function to AutoCAD app made by Autodesk. I am using GLSurfaceview to draw lines, circles, etc. & perform other operations as well. The default units for GLSurfaceview is 2 units whether it may be of any size in the layout. i.e. the center is 0,0,0 & outer edges are 1,1,0 and -1,-1,0 and 1,-1,0, etc. What I need is to pan the GLSurfaceview, i.e draw lines, circles in 2,2,0 & 3,3,0 by panning the surfaceview as in autocad.

Can anyone suggest me how can I accomplish the task...Any clarifications in question please feel free to contact.