texture mapping problem

i have a texture for road but it is only one piece of it, how do
apply the texture so it look like a long road?
thanks in advance.

use the warp parameters for S and T texture coordinates.

if S correspond to the width and T correspond to the length, set GL_CLAMP_TO_EDGE for S warp mode (using glTexParameter) and GL_REPEAT for T warp mode.
now, when rendering, set the T texture coordinate of the road’s vertice corresponding to the distance from the road start point.

how do i map the road to the center and place other texture at both side