I have a 16,16 texture that I would like to repeat(horizontally) over a rectangle. These are the current vertex declarations I have:

[lua]

dragbar[1][“x”] = 0

dragbar[1][“y”] = 0

dragbar[1][“u”] = 0 //Top Left

dragbar[1][“v”] = 0

```
--Second Vertex
dragbar[2]["x"] = panel:GetWide()
dragbar[2]["y"] = 0
dragbar[2]["u"] = 1 //Top Right
dragbar[2]["v"] = 0
--Third Vertex
dragbar[3]["x"] = panel:GetWide()
dragbar[3]["y"] = 16
dragbar[3]["u"] = 1 //Bottom Left
dragbar[3]["v"] = 1
--Fourth Vertex
dragbar[4]["x"] = 0
dragbar[4]["y"] = 16
dragbar[4]["u"] = 0 //Bottom Right
dragbar[4]["v"] = 1
surface.DrawPoly( dragbar )
```

[/lua]

That stretches the entire 16x16 texture over the rectangle, but I would like it to repeat. What are the correct U,V coordinates I must use?

Thanks,

Gbps