OK I have a simple quad drawn on the screen. I use the gl.translatef (x, 0, 0)
and
x = x + .05f
to move it to the right
My question is this. If I wanted to make it change direction after a bit in Java2d I would just say if
(x > Screenwidth)
x = -x;
But in openGL if I try that then the quad goes to its original starting position instead of moving in the -x direction. How can I fix it so when it moves a certain distance to the right it then changes its direction of movement?