In the context of a Java Rubik's Cube application I am trying to animate the cube actions performed by the end user.
To do that I am just using rotations and many redraws as following:
GL11.glRotatef(zRotate, 0.0f, 0.0f, 1.0f);
the zRotate variable is icremented from 0 to 90 and I am performing redraws every 20 miliseconds.
It works perfectly but I see flickering on the screen .. How can I avoid that ?