In OpenGL ES for Android I have an object that I want to rotate with gl.glRotate. But I want this rotation to happen during n seconds, not immediately. How can I implement this? I want this to happen during n seconds so that the user can see the rotation.
In OpenGL ES for Android I have an object that I want to rotate
Share
How quickly is your object rendered on the View. Suppose it takes time t for one update, then the amount by which you should rotate your object will be (t/n)*r, r being the total amount of rotation you want in n seconds. So in a total of n seconds, the effective rotation will be r.