Hello!
The method called from the display list draws some quads in a horizontal line. You can make the quads going left or right by pressing the arrow keys, then the X_POS variable is changing. When you press left or right many times, the quads will finally disappear from the view.
gl.glTranslatef(X_POS, 0.0f, -6.0f);
gl.glCallList(quad);
I would like to make the left-most quad appear on the right side when it dissappears to the left, and the right-most quad appear to the left when it dissappears to the right, so that the quads never disappear from the view even if I press the left left key for a month.
How can I achieve this?