Repeat DrawTexture Horizontally?

Hello,

I have a texture which has a width of 10px, and I want to draw that in my GUI function but I want it to keep repeating the texture every 10 pixels.

In other words, right now - it just stretches the texture across the whole Screen.width. What I want it to do is for the texture to be 10px and repeat it all way across the screen width.

Any ideas?

Thanks

Have a look a bit further down on this page. I think the solutions might fill your (texture) needs. (Sorry for the bad joke.)