DX and repeating textures

BlitzMax Forums/BlitzMax Programming/DX and repeating textures

Jake L.(Posted 2006) [#1]
Hi folks,

I have a little problem with my "render both worlds"-engine (2D engine supporting both DX and GL). I had no problem with repeating textures under OpenGL, but how to do this with DX7?

So I have a quad covering 512x512 pixels on screen and a texture of 256x256. Under OpenGL I can set u1/v1 to 2.0 and the texture got mapped twice in this quad (assumming GL-texture settings are correct, which they are).

But how the hell I can achieve this under DX7 ?

Thanks in advance

Jake

PS: All answers allowed except that I have to fake this with additional quads ;) I really hate to do this...


tonyg(Posted 2006) [#2]
Does this help?

Couldn't you use setviewport and tileimage though?


Jake L.(Posted 2006) [#3]
Thanks tonyg! I can't check this now (at work), but seems like setwrap/setnowrap is the part I'm looking for. I'll try this later this day.