I try to use setRotation() on my GLSurfaceView, but the view seems not rotate around the pivot which is the center of the screen. the code like below:
class MyGLSurfaceView extends GLSurfaceView {
private float mCurRotation = 0.0f;
@Override
public boolean onTouchEvent(MotionEvent e) {
mCurRotation = mCurRotation + 10;
setRotation(mCurRotation);
}
}
Is there any body know the reason and teach me how to rotate my GLSurfaceView?