How to draw one texture fewtimes on one shape, in stead of make it larger

How to draw one texture fewtimes on one shape, in stead of make it larger.

I think all you have to do is specify coordinates bigger than one…like this maybe on a quad?

glTexCoord2f(2,2);
glTexCoord2f(0,2);
glTexCoord2f(0,0);
glTexCoord2f(0,2);

would draw it 4 times if im correct.

Also, make sure you set the texture wrapping mode to GL_REPEAT.

how could i set the wrapping model to GL_REPEAT

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);

Page 410 of the Redbook.

what different does it make, it works without it also

If it does’t matter it’s because the default behavior is GL_REPEAT, however, it’s probably good to get in the habit of setting such things because there may come a time when the default behavior is not what you want.

can you please tell me, what could be other setting of wrapping ?

Why not look in some documentations? There are lots of them on the net, and it isn’t that hard to find them. Anyways, the other wrapping modes are GL_CLAMP, GL_CLAMP_TO_EDGE, GL_CLAMP_TO_BORDER and GL_MIRRORED_REPEAT.