Hello everyone!
I'm trying to code a 1980's Asteroids type game in OpenGL and I'm almost done, however one thing is really bugging me, and I can't seem to see what the problem is? I'm trying to draw 'stars' by drawing a hundred points at random coordinates using a drawStars function. Here is the code for the function:
You accidentally your loop. Notice how the variable you pass into your function isn't actually being used in that function? Seems kind of strange doesn't it?