Hello,
I have a problem when applying a texture to a quad. I want the texture to appear tiled 5x5 times in the quad. I use the following code :
glBegin (GL_QUADS);
glTexCoord2d (0.0f, 0.0f);
glVertex3f (-1.0f, -1.0f, 0.0f);
glTexCoord2d (0.0f, 5.0f);
glVertex3f ( 1.0f, -1.0f, 0.0f);
glTexCoord2d (5.0f, 5.0f);
glVertex3f ( 1.0f, 1.0f, 0.0f);
glTexCoord2d (5.0f, 0.0f);
glVertex3f (-1.0f, 1.0f, 0.0f);
glEnd ();
This example works but it is very slow.
Is this the way to apply a texture tiled, or Should I try to display 25 quads (5x5) with one texture in each quad ?
Thanks in advance.
(ps. Sorry for my bad English)