Creating many objects!

hi, i need some help to try and make many objects appear where they are all a certain distance away from each other all along the x axis, at the moment i have this code, but it just makes one long object not separate ones, can anyone help?

for(int i = 0; i < 10; i++)
		
		{
			glPushMatrix();
			glTranslatef(i * 10,0.0,0.0);
			drawObject();
			glPopMatrix();
		}

Increase the distance between objects ?

use i*100 for example, then find a good value.

if i use i*100 it just still makes one long object!

Screenshot please, I don’t understand your problem.

its alright i figured it out, thanks

Just for the record, what was your problem and its solution ?

Agreed. Post your solution so that future programmers with similar problems can resolve their issues when they find this thread.

It doesn’t matter if it was something you feel was silly. We all have “forehead slappers”.