OpenGL / Moveing textures?
I have been makeing a pong game in OpenGL (the first *real* thing i am making in openGL)
I have been useing the Nehe basecode (nehe.gamedev.com) and have been able to make 2 pods wich I can move up and down, I have been able to make a small box and add a texture to it so it looks like a ball.
Now to my problem :)
I cant get my "ball", wich is just a quad with a texture to it, to move.
I have made my ball like this "glVertex3f(ballLTX, ballLTY, 0.0f);" so I am able to move it any way I want too.
However If I put a code like this :
My box, or ball disaperase for some reason....Any help on this would be really great as I am out of ideas right now
while (ballLTX < 6.0f )
(please note that I am new to OpenGL)