I am making an OpenGL game in which the user presses 1, and a square appears in a random spot. Now, that part works all fine and dandy, but after the square is placed, I want it to move to the left. I am using a while loop to render all of the square(s) (depending on how many the user spawned). It looks like this:
1 2 3 4 5
int i = 1;
while (i < 65) {
att [i].DrawSquare();
++i;
}
this game I am making is a 2d game, just so you know. Any help is appreciated!!
glut and sdl are targeting two different groups of people. Glut is lightweight and only meant as a means for creating an opengl window without having to worry about which operating system you are on. So it's not out of date as it still does what it's meant to do. If you don't want to do opengl stuff yourself there's other API's for that.