Explain me why it work right (show full texture)for example when N=10, and show only piece of texture when N=5…

Can you tell me about technology to put texture on several objrcts…

for(y=0;y<(N-1);y++)

for(x=0;x<(N-1);x++)

{

glBegin(GL_POLYGON);

glTexCoord2d(x/N, y/N);

glVertex3d(x,y,1);

glTexCoord2d(x/N, (y+1)/N);

glVertex3d(x,y+1,1);

glTexCoord2d((x+1)/N, (y+1)/N);

glVertex3d(x+1,y+1,1);

glTexCoord2d((x+1)/N, y/N);

glVertex3d(x+1,y,1);

glEnd();

}